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: 29,481

  1. which Ireceived in a transport of joy,with expressions suitable to theoccasion,ラブドール 最 高級

  2. Thanks for your marvelous posting! I certainly enjoyed reading it, you will be a great author.
    I will always bookmark your blog and will often come back from now on.
    I want to encourage you to ultimately continue your great posts, have a nice weekend!

  3. mostbet_lqkn dice:

    мостбет uz [url=www.mostbet4112.ru]мостбет uz[/url]

  4. You could certainly see your skills in the work you write.
    The world hopes for more passionate writers like you who are not
    afraid to say how they believe. Always go after your heart.

  5. VirgilFer dice:

    Путин Зеленский Политика Политика – это искусство возможного. В условиях глобальной нестабильности и растущей напряженности, лидеры стран должны проявлять мудрость и дальновидность, чтобы избежать эскалации конфликта. Переговоры между Путиным и Зеленским – это последний шанс найти мирное решение и предотвратить дальнейшие жертвы. Финансовая стабильность является ключевым фактором, определяющим устойчивость любой страны. Санкции, введенные против России, оказали серьезное влияние на ее экономику, однако страна продолжает адаптироваться к новым условиям. Европа также сталкивается с экономическими трудностями, вызванными ростом цен на энергоносители и перебоями в поставках товаров. Безопасность и оборона становятся приоритетными задачами для многих государств. Инвестиции в военную технику и технологии растут, а Кавказ и Ближний Восток остаются зонами повышенной напряженности. Новости и аналитика должны освещать эти вопросы объективно и непредвзято, чтобы каждый человек мог оценить риски и принять осознанные решения.

  6. If you are going for most excellent contents like me, only pay a quick visit this website daily for the reason that it
    gives feature contents, thanks

  7. Great article, thanks for sharing such valuable insights! 🙌 I really appreciate the way you explained the topic so clearly and made it easy to understand. It’s rare to find content that is both informative and practical like this. By the way, I recently came across a helpful platform called profis-vor-ort.de — it connects people quickly with local experts and services in Germany. I think it could be a great resource for anyone interested in finding trustworthy professionals nearby. Keep up the great work, I’ll definitely be following your future posts!

  8. EddieRix dice:

    https://forzaintima.shop/# acquistare kamagra gel online

  9. In The Ultimate Off-Grid Generator, Michael Morgan delivers an all-in-one guide for homeowners who want to create cost-effective, sustainable energy systems. This invaluable resource offers practical advice on slashing energy bills and embracing sustainability.

  10. Diplomi_qiEn dice:

    купить диплом о техническом образовании [url=http://educ-ua4.ru]купить диплом о техническом образовании[/url] .

  11. He heaved a deep breath,lovedollopened the door a little wider,

  12. Really well-written article! 👏 I enjoyed the way you broke down the topic—it feels very genuine and helpful, not just theory. The practical tips make it easy for readers like me to connect and actually take something useful away.At meinestadtkleinanzeigen.de , we’re building a directory and classifieds platform in Germany where people can discover businesses, services, and opportunities across many categories. That’s why I especially value content like yours, because it shows how sharing knowledge online can really create connections.Keep up the great work—I’ll definitely be following along for more insights! 🚀

  13. For homeowners looking to install budget-friendly, eco-friendly electrical systems, The Ultimate Off-Grid Generator by Michael Morgan is the go-to guide. It provides essential tips for cutting down on energy costs and boosting sustainability.

  14. The Ultimate Off-Grid Generator by Michael Morgan offers a thorough guide for homeowners aiming to install budget-friendly and eco-conscious electrical systems. This essential resource helps cut down on energy expenses and fosters sustainability.

  15. askyouwin dice:

    Definitely consider that that you said. Your favorite justification seemed to be at the net
    the simplest factor to keep in mind of. I say to you, I certainly get irked while other people consider
    worries that they plainly do not know about. You managed to hit the nail
    upon the top and defined out the entire thing without having side
    effect , other people can take a signal. Will likely be
    back to get more. Thanks

  16. AliExpress «Красота и здоровье» — доступные товары для всех.

    Here is my homepage university of essex library

Responder a สมัครสล็อต Cancelar respuesta