Infraestructura como código

Festival Politraining Industria 4.0

Infraestructura como código

En este nuevo artículo me gustaría explicar que es infraestructura
como código (IAC), pero primero definamos a que nos referimos cuando
hablamos sobre infraestructura.
Cuando hablamos de infraestructura nos referimos en este caso, a un
servidor(vps) , dominios, redes privadas. etc.

Definición

El concepto de infraestructura como código no es más que la forma de
automatización de nuestra infraestructura a través de código .

Puede que tu seas un freelance o trabajes en una compañía, en la que
constantemente se hace deploy de nuevas aplicaciones.
Imagina tener que estar creando un servidor(vps), agregando las llaves
ssh, creando un record A, load balancers, continuar con la instalación y
configuración de nginx ,mysql docker, php, etc. Todo esto cada vez que
tengas que hacer deploy de una nueva aplicación.
Este es un proceso en el que muchas veces se le dedica tiempo
innecesario.

Es por ello que muchas veces, es mejor encontrar o crear una solución para la automatización en este tipo de procesos.

Para poder trabajar o usar infraestructura como código, lo único que
tenemos que hacer es bien, crear nuestro propio script, o bien usar
alguna herramienta de un tercero.

Usualmente cuando trabajamos con infraestructura como código,
independiente de la herramienta que usamos, siempre trabajamos con algún
lenguaje para la descripción de la configuración, pudiendo ser json,
yaml o algún nuevo lenguaje propio del software (domain-specific
language ). dentro del archivo de configuración, es donde definiremos
todo los componentes necesarios para crear nuestra infraestructura,
variando de sintaxis entre los diferentes softwares que podemos usar.

Cabe mencionar que, usualmente este tipo de software nos permite,
configurar a nuestra infraestructura, de una manera muy detallada,
dependiendo del tipo de proveedor que elijamos , por ejemplo, poder
configurar redes privadas, sistema operativo, podemos agregar dominios,
subdominios , agregar nuestra claves ssh, elegir el datacenter etc. Algo
interesante es que, podemos agregar y ejecutar scripts dentro del vps
durante la construcción, esto para poder configurar dentro todo el
software.

Aunque de igual forma, tenemos otro concepto llamado configuración
como código (CaC)
Qué es exactamente el mismo concepto, pero este está orientado a la
configuración del software dentro de la infraestructura(vps), por
ejemplo la instalación y configuración de nginx, docker, ruby etc. Sin
embargo muchas veces los mismos proveedores (IaC) tienen la misma
funcionalidad o su funcionalidad es intercambiable.

Ventajas y desventajas.

Dentro de las ventajas como hemos mencionado es el de elaborar una
plantilla que podemos re-utilizar múltiples veces, eliminando la
necesidad de realizar configuraciones manuales. Esta sería, la principal
y más importante característica de este tipo de software.
Ya que con ello podemos hacer la replicación de la misma configuración,
para diferentes entornos, para testing, QA, producción, desarrollo, etc.

Otra ventaja que podemos encontrar es que usualmente este tipo de
software es del tipo agnóstico lo que quiere decir que no importa, el
proveedor en donde estés configurando nuestra infraestructura, pudiendo
ser digital ocean, amazon web services, azure, e inclusive virtualbox.

Una desventaja que podemos encontrar es quizá el tiempo que le
dedicamos en configurar nuestro archivo de configuración, así mismo, el
tener que modificar el archivo si es que agregamos una nueva tecnología o
configuración a nuestra infraestructura.

Lista de software para IaC y CaC

Debajo vemos una lista con varios de los proveedores de infraestructura y configuración como código más sobresalientes.
Cada uno de ellos comparten cierta similitud, en cuanto a configuración.

  • Terraform
  • Chef
  • Puppet
  • Ansible
  • SaltStack

Conclusión

La automatización es sin duda una de las mejores cosas que podemos
hacer para ahorrar tiempo y muchas veces recursos.
El uso de IaC, dentro de una empresa o de manera independiente trae
muchas ventajas a largo plazo. Este concepto de IaC no es para nada
nuevo, es un concepto de muchos años. De hecho muchos autores. hacen
referencia a que este concepto fue la base de la cual ha surgido toda
esta tendencia del devops.
Espero que este pequeño artículo te haya servido, o te haya incentivado a
investigar más sobre el tema, y tal vez a aprender una nueva
tecnología.

Comments: 38,403

  1. https://jekyll.s3.us-east-005.backblazeb2.com/20250909-2/research/je-marketing-(21).html
    The column silhouette skims the determine while nonetheless providing plenty of room to maneuver.

  2. 撥筋證照 dice:

    https://je-tall-marketing-827.syd1.digitaloceanspaces.com/research/je-marketing-(164).html
    An occasion as particular as your kid’s wedding ceremony doesn’t come round every single day.

  3. член сломался, секс-кукла, продажа секс-игрушек,
    राजा छह, राजा ने पैर फैलाकर, प्लर राजा,
    ৰাজ্যসমূহৰ ৰজা, গুৰুত্বপূৰ্ণ সঁজুলি বিক্ৰী কৰা

  4. zaimi_icOr dice:

    все займы рф [url=http://www.zaimy-15.ru]http://www.zaimy-15.ru[/url] .

  5. 撥筋教學 dice:

    https://storage.googleapis.com/digi475sa/research/digi475sa-(376).html
    They are a fantastic place to check out in case you are on the lookout for good quality clothes.

  6. I do not even know how I ended up here, but I thought this post was great.
    I do not know who you are but certainly you are going
    to a famous blogger if you are not already 😉 Cheers!

  7. 撥筋創業 dice:

    https://je-sf-tall-marketing-731.b-cdn.net/research/je-marketing-(455).html
    Saks is definitely top-of-the-line department shops for buying a mother-of-the-bride dress.

  8. MichealFargy dice:

    [url=https://clearmedshub.shop/#]ClearMedsHub[/url]

  9. I have read so many posts on the topic of the blogger lovers except this paragraph
    is actually a pleasant piece of writing, keep it up.

  10. Derekmom dice:

    Cialis 20mg price in USA: Cialis without a doctor prescription – EverTrustMeds

  11. ダッチワイフ 販売and notwaiting for the ladies to appear,Prince Andrew set off for home.

  12. Dennismam dice:

    EverTrustMeds: EverTrustMeds – Ever Trust Meds

  13. webpage dice:

    This info is worth everyone’s attention. How can I find out more?

  14. Dennismam dice:

    VitalEdge Pharma: VitalEdge Pharma – VitalEdge Pharma

  15. https://jekyll.s3.us-east-005.backblazeb2.com/20250904-15/research/je-marketing-(118).html
    A purple lace Erdem gown, embroidered with pink and crimson blooms, paired perfectly with this modern mother’s half-up, half-down hairstyle.

  16. 撥筋課程 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20250909-5/research/je-marketing-(95).html
    It can be utilized for any occasion, and the type of it’s perfect for the mom of the bride.

  17. 整骨學徒 dice:

    https://je-tall-marketing-879.ams3.digitaloceanspaces.com/research/je-marketing-(354).html
    Thus, it is essential to talk to the bride to ask about what the wedding might be like.

  18. 整復學徒 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20250904-12/about/
    The mother of the bride and groom ought to gown in a method that doesn’t conflict however isn’t too matchy-matchy either.

  19. vapors,the eggshell boa and thecobweb sail are the properties which he uses in this poetic drama.エロ い ラブドール

  20. ラブドール 高級You may be asking yourself if it’s selfish to have one child? Where do you draw the line between being selfish and being realistic,having a life that allows you to be a content,

  21. https://storage.googleapis.com/digi464sa/research/digi464sa-(206).html
    Most necessary thing is that you’re comfy and never going to over heat.

  22. Hello there, just became aware of your blog through Google,
    and found that it is truly informative. I’m gonna watch out
    for brussels. I’ll be grateful if you continue this
    in future. A lot of people will be benefited from your writing.

    Cheers!

  23. Wonderful blog! I found it while searching on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Many thanks

  24. Thanks for a marvelous posting! I definitely enjoyed reading it, you might
    be a great author.I will remember to bookmark your blog and definitely
    will come back in the future. I want to encourage you continue your
    great writing, have a nice afternoon!

  25. https://je-sf-tall-marketing-730.b-cdn.net/research/je-marketing-(159).html
    This consists of most variations of white, corresponding to ivory and champagne.

  26. 按摩課程 dice:

    https://digi68sa.sfo3.digitaloceanspaces.com/research/digi68sa-(495).html
    Our moms are attractive and superb and they want to rock what they have.

  27. https://je-sf-tall-marketing-732.b-cdn.net/research/je-marketing-(413).html
    You can complement it in numerous methods, from a simple no-makeup look to daring red lipstick paired with smokey eyes and much more.

  28. 整復學徒 dice:

    https://je-sf-tall-marketing-727.b-cdn.net/research/je-marketing-(483).html
    Her mother, Rita, opted for this champagne-hued gown that was equally as ethereal.

  29. Keep this going please, great job!

  30. 撥筋課程 dice:

    https://je-sf-tall-marketing-740.b-cdn.net/research/je-marketing-(386).html
    This mom of the bride wore a white tunic and skirt for a boho-chic ensemble.

Responder a cat escape hacked version Cancelar respuesta