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: 126,426

  1. When I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on each time a comment is added I recieve four emails with the same comment. Is there a means you are able to remove me from that service? Many thanks!

  2. megapari casino online, megapari casino online,
    online kumar meraklıların buluştuğu emniyetli bir alan. Farklı oyun alternatifi sunarak, tüm katılımcıların harika zaman geçirmesini temin eder.

  3. купить курсовую москва [url=https://kupit-kursovuyu-44.ru/]kupit-kursovuyu-44.ru[/url] .

  4. She had the grit to pray for Judus if she took the notiontherewart no back-down to her,コスプレ エロ いI judge.

  5. bk bet dice:

    When I initially left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is added I recieve four emails with the same comment. Perhaps there is an easy method you can remove me from that service? Thank you!

  6. phcity dice:

    When I initially commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I receive four emails with the same comment. Is there a way you can remove me from that service? Many thanks!

  7. заказать курсовой проект [url=https://kupit-kursovuyu-46.ru/]заказать курсовой проект[/url] .

  8. dolly casino dice:

    When I initially commented I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I recieve four emails with the exact same comment. Is there a means you are able to remove me from that service? Thank you!

  9. dick-ish dice:

    Howdy superb blog! Does running a blog like this take a massive
    amount work? I’ve absolutely no understanding of computer programming but I was hoping to
    start my own blog soon. Anyhow, should you have any recommendations or techniques
    for new blog owners please share. I understand this
    is off topic nevertheless I simply wanted to ask.
    Appreciate it!

  10. When I initially left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on each time a comment is added I recieve four emails with the same comment. Is there a means you can remove me from that service? Cheers!

  11. Sharonjop dice:

    Recomiendo chicas delicada latina como Tokyo para experiencia VIP en Barcelona. tarifas competitivas. para momentos unicos. masaje prostГЎtico

  12. 1win_tjpl dice:

    1win aviator təlimat [url=http://1win5761.help/]1win aviator təlimat[/url]

  13. Diplomi_qaSn dice:

    можно ли купить диплом медсестры [url=www.frei-diplom13.ru/]можно ли купить диплом медсестры[/url] .

  14. After I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I get 4 emails with the exact same comment. Is there a way you can remove me from that service? Cheers!

  15. When I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get four emails with the exact same comment. There has to be a means you can remove me from that service? Thanks!

  16. стоимость написания курсовой работы на заказ [url=https://kupit-kursovuyu-44.ru/]kupit-kursovuyu-44.ru[/url] .

  17. When I originally left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I recieve four emails with the same comment. There has to be a way you can remove me from that service? Appreciate it!

  18. p9 bet dice:

    After I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I get 4 emails with the exact same comment. Perhaps there is a means you can remove me from that service? Cheers!

  19. 1win_txpl dice:

    1win az basketbol mərcləri [url=https://1win5761.help/]https://1win5761.help/[/url]

  20. After I originally left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get 4 emails with the exact same comment. Is there an easy method you can remove me from that service? Kudos!

  21. Nice post. I learn something totally new and challenging on sites I stumbleupon everyday.
    It will always be useful to read content from other
    authors and practice a little something from their sites.

  22. gtbets dice:

    When I originally commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on each time a comment is added I recieve 4 emails with the exact same comment. Perhaps there is a means you can remove me from that service? Many thanks!

  23. w88 dice:

    After I initially left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the exact same comment. There has to be an easy method you can remove me from that service? Many thanks!

  24. rich711 dice:

    After I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I get 4 emails with the exact same comment. Perhaps there is a way you are able to remove me from that service? Appreciate it!

  25. 官方數據源24小時即時更新nba戰績比分、賽程表,以及NBA球星數據統計和表現分析。

  26. поисковое продвижение сайта в интернете москва [url=https://prodvizhenie-sajtov11.ru/]поисковое продвижение сайта в интернете москва[/url] .

  27. 肌の質感は非常に柔らかく、顔のディテールも精密に作られており、リアルな感触が楽しめます.セックス ドール関節の動きも非常にスムーズで、さまざまなポーズを自由に楽しむことができるのです.

  28. After I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I recieve 4 emails with the same comment. Perhaps there is an easy method you can remove me from that service? Thank you!

  29. заказать курсовую работу [url=https://kupit-kursovuyu-44.ru/]заказать курсовую работу[/url] .

  30. заказать практическую работу недорого цены [url=https://kupit-kursovuyu-45.ru/]kupit-kursovuyu-45.ru[/url] .

  31. написание студенческих работ на заказ [url=https://kupit-kursovuyu-49.ru/]написание студенческих работ на заказ[/url] .

  32. pulsz login dice:

    After I initially left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I get four emails with the same comment. Is there a means you can remove me from that service? Cheers!

Responder a syndicate Cancelar respuesta