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: 59,478

  1. jerkoff dice:

    Hello, its nice post about media print, we all understand media
    is a wonderful source of facts.

  2. Diplomi_dgel dice:

    купить диплом вуза занесением реестр [url=https://frei-diplom2.ru/]https://frei-diplom2.ru/[/url] .

  3. seo professional services [url=https://top-10-seo-prodvizhenie.ru]https://top-10-seo-prodvizhenie.ru[/url] .

  4. before he had thecourage to go up and knock.But he made a dash,エロ コス

  5. top seo marketing [url=http://reiting-seo-agentstv.ru]http://reiting-seo-agentstv.ru[/url] .

  6. Diplomi_cksa dice:

    диплом купить с проведением [url=https://frei-diplom1.ru]диплом купить с проведением[/url] .

  7. Diplomi_lhSn dice:

    диплом техникума купить в казахстане [url=frei-diplom8.ru]диплом техникума купить в казахстане[/url] .

  8. продвижение сайтов компания [url=http://www.reiting-kompanii-po-prodvizheniyu-sajtov.ru]http://www.reiting-kompanii-po-prodvizheniyu-sajtov.ru[/url] .

  9. LanceWIZ dice:

    https://bluepeakmeds.com/# how generic Viagra works in the body

  10. Diplomi_rhpa dice:

    купить диплом в азове [url=http://rudik-diplom5.ru]купить диплом в азове[/url] .

  11. сео оптимизация и продвижение [url=https://reiting-runeta-seo.ru/]сео оптимизация и продвижение[/url] .

  12. Diplomi_rbki dice:

    диплом об окончании техникума купить в спб [url=www.frei-diplom9.ru]диплом об окончании техникума купить в спб[/url] .

  13. перевод английской научно технической литературы [url=http://teletype.in/@alexd78/HN462R01hzy]http://teletype.in/@alexd78/HN462R01hzy[/url] .

  14. Do you have a spam problem on this website; I also
    am a blogger, and I was curious about your situation; many
    of us have developed some nice practices and we
    are looking to swap techniques with others, please shoot me an e-mail if interested.

  15. кухни на заказ в спб недорого [url=http://www.kuhni-spb-2.ru]http://www.kuhni-spb-2.ru[/url] .

  16. лучшие seo агентства [url=www.top-10-seo-prodvizhenie.ru]www.top-10-seo-prodvizhenie.ru[/url] .

  17. seo продвижение сайта агентство [url=https://reiting-kompanii-po-prodvizheniyu-sajtov.ru/]seo продвижение сайта агентство[/url] .

  18. Pierretook her hand and begged her forgivenes without knowing what for.From that day the eldest princess quite changed toward Pierre and beganknitting a striped scarf for him.ラブドール 最新

  19. компании по продвижению сайтов [url=https://seo-prodvizhenie-reiting-kompanij.ru/]https://seo-prodvizhenie-reiting-kompanij.ru/[/url] .

  20. Diplomi_muOn dice:

    купить диплом электромонтажника [url=https://rudik-diplom12.ru]купить диплом электромонтажника[/url] .

  21. AnthonyCen dice:

    Potenzmittel rezeptfrei kaufen: sichere Online-Apotheke Deutschland – Sildenafil Wirkung und Dosierung

  22. AnthonyCen dice:

    Medi Vertraut: Potenzmittel günstig online – sichere Online-Apotheke Deutschland

  23. Diplomi_vfel dice:

    москва купить диплом о высшем образовании с занесением в реестр [url=https://frei-diplom2.ru/]москва купить диплом о высшем образовании с занесением в реестр[/url] .

  24. лучшие компании seo [url=http://top-10-seo-prodvizhenie.ru]http://top-10-seo-prodvizhenie.ru[/url] .

  25. Diplomi_mpka dice:

    купить диплом в смоленске [url=http://rudik-diplom1.ru]http://rudik-diplom1.ru[/url] .

  26. рейтинг seo агентств [url=www.reiting-seo-agentstv.ru/]рейтинг seo агентств[/url] .

  27. рекламное агентство seo [url=http://reiting-kompanii-po-prodvizheniyu-sajtov.ru]рекламное агентство seo[/url] .

  28. for a man whovalued his success in the service,女性 用 ラブドールto be at Tilsit on the occasion ofthis interview between the two Emperor and having succeeded in thiBorís felt that henceforth his position was fully assured.

  29. услуги по раскрутке сайта [url=https://reiting-runeta-seo.ru]https://reiting-runeta-seo.ru[/url] .

  30. Diplomi_txma dice:

    купить диплом с занесением в реестр в москве [url=www.frei-diplom3.ru/]купить диплом с занесением в реестр в москве[/url] .

  31. ошибки медицинского перевода [url=https://telegra.ph/Medicinskij-perevod-tochnost-kak-vopros-zhizni-i-zdorovya-10-16]https://telegra.ph/Medicinskij-perevod-tochnost-kak-vopros-zhizni-i-zdorovya-10-16[/url] .

  32. Les Gladstone dice:

    It鈥檚 rare to find such clear writing online. Thanks for putting this together. Your knowledge on this topic really shows.

    https://wps-wpsai.com

  33. Williamuncob dice:

    sichere Online-Apotheke Deutschland: Medi Vertraut – MediVertraut

  34. Diplomi_yySn dice:

    купить диплом техникума госзнак [url=www.frei-diplom8.ru]купить диплом техникума госзнак[/url] .

  35. agenolx slot dice:

    We’re a group of volunteers and opening a new scheme in our community.

    Your web site provided us with valuable info to work on.
    You’ve done a formidable job and our entire community will be thankful to you.

  36. Diplomi_hspa dice:

    купить диплом в магнитогорске [url=https://rudik-diplom5.ru]https://rudik-diplom5.ru[/url] .

  37. seo продвижение сайта россия [url=http://reiting-seo-agentstv.ru]seo продвижение сайта россия[/url] .

  38. Diplomi_veMt dice:

    купить диплом в салавате [url=https://rudik-diplom8.ru/]купить диплом в салавате[/url] .

  39. компании занимающиеся продвижением сайтов [url=www.top-10-seo-prodvizhenie.ru/]компании занимающиеся продвижением сайтов[/url] .

  40. Diplomi_fcki dice:

    купить диплом техникума общественного питания [url=https://www.frei-diplom9.ru]купить диплом техникума общественного питания[/url] .

  41. seo агенция [url=http://reiting-seo-agentstv.ru]http://reiting-seo-agentstv.ru[/url] .

  42. Great article! I really appreciate the way you explained everything so clearly – it feels like you put a lot of effort into making it useful for readers. I’ve been exploring different tools and resources myself, and recently started using https://webdesignfreelancermunchen.de/ by Abdul, professional webdesigner in bamberg. It’s been a game changer for me, and reading your post actually gave me even more ideas on how to apply it. Thanks for sharing such valuable insights!

  43. услуги сео [url=http://reiting-kompanii-po-prodvizheniyu-sajtov.ru/]http://reiting-kompanii-po-prodvizheniyu-sajtov.ru/[/url] .

  44. Diplomi_qykr dice:

    купить диплом гознак [url=https://rudik-diplom2.ru]купить диплом гознак[/url] .

  45. Diplomi_xiOr dice:

    купить диплом младшего специалиста в украине [url=www.educ-ua7.ru]www.educ-ua7.ru[/url] .

Agrega tu comenatio