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: 53,928

  1. Diplomi_lnel dice:

    купить диплом журналиста [url=http://rudik-diplom10.ru]купить диплом журналиста[/url] .

  2. Diplomi_jmsa dice:

    купить диплом с проводкой моих [url=frei-diplom1.ru]купить диплом с проводкой моих[/url] .

  3. Diplomi_enSn dice:

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

  4. learnandearndaily – The writing feels genuine, not too salesy or pushy

  5. connectandgrowonline – Highly recommend for anyone looking to enhance their online business.

  6. jointhenextbigthing – Absolutely love the content here, keeps me motivated every day.

  7. Andrewmub dice:

    discreet ED pills delivery in the US: cialis – buy cialis online

  8. Diplomi_glEa dice:

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

  9. Diplomi_evma dice:

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

  10. Diplomi_kuEt dice:

    купить диплом фарм колледжа [url=https://frei-diplom11.ru/]https://frei-diplom11.ru/[/url] .

  11. Diplomi_lgel dice:

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

  12. learnexploreandshine – I’ll revisit this when I need fresh inspiration

  13. オナドールCHAPTER XIV.OF THE FIRST AND SECOND NATURALL LAWES,

  14. セックス ロボットanexception made,and Borís transferred into the regiment of Sem?novGuards with the rank of cornet.

  15. the greatest is th that being born in the morning,he hadinvented Musique at noon,オナドール

  16. Careynum dice:

    MedicoSur [url=https://medicosur.com/#]mexican pharmacy[/url] mexican pharmacy

  17. Diplomi_bwOl dice:

    купить аттестат за классов [url=https://www.rudik-diplom13.ru]купить аттестат за классов[/url] .

  18. потолочкин натяжные [url=https://natyazhnye-potolki-samara-2.ru]https://natyazhnye-potolki-samara-2.ru[/url] .

  19. Diplomi_ezPl dice:

    купить диплом в биробиджане [url=www.rudik-diplom7.ru/]купить диплом в биробиджане[/url] .

  20. Diplomi_zmki dice:

    диплом колледжа купить москва [url=http://frei-diplom9.ru]http://frei-diplom9.ru[/url] .

  21. Diplomi_dukr dice:

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

  22. This platform exceeded my expectations with scalable features and useful analytics.

  23. I do not know if it’s just me or if everybody else encountering problems with your website.

    It looks like some of the written text in your posts are running off the screen. Can somebody else please provide feedback and let me know if this is happening to them too?
    This may be a problem with my web browser because I’ve
    had this happen previously. Appreciate it

  24. Careynum dice:

    ZenCare Meds [url=http://zencaremeds.com/#]buy amoxil[/url] online pharmacy

  25. Diplomi_vsSn dice:

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

  26. Magnificent website. Lots of useful info here.
    I’m sending it to a few pals ans also sharing in delicious.
    And certainly, thank you for your sweat!

  27. Andrewmub dice:

    mexico pharmacy: MedicoSur – mexican pharmacy

  28. Diplomi_lcSa dice:

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

  29. 1win_xnOt dice:

    1win az [url=1win5004.com]1win5004.com[/url]

  30. Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

  31. ドール エロnone would have been more ready to vote for a severechastisement than himself,but it was plain that was not his design: ? and,

  32. Diplomi_unel dice:

    купить диплом прораба [url=https://rudik-diplom10.ru/]купить диплом прораба[/url] .

  33. Heine?” heasked with such _savoir-faire_,リアル ラブドールthat you might have thought he hadaccompanied me and had only parted from me a few minutes before hecame into the room.

  34. ” said Amy,エロ ロボットas the sun woke her nextmorning.

  35. Careynum dice:

    online pharmacy [url=http://zencaremeds.com/#]online pharmacy[/url] buy propecia

  36. Diplomi_qasa dice:

    как купить легальный диплом [url=https://frei-diplom1.ru/]https://frei-diplom1.ru/[/url] .

  37. I called to mind the great variety of buoyant matter that strewed the coast of Lofoden,ラブドール エロhaving been absorbed and then thrown forth by the Moskoe-str?m.

  38. ラブドール アニメThey don’t know what they’re talking about.I do.

  39. Diplomi_pnOr dice:

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

  40. Andresdix dice:

    buy propecia: online pharmacy – affordable online pharmacy for Americans

  41. togetherwecreateimpact – Genuine tone, very motivating, makes me want to do my part

  42. I’m really enjoying the design and layout of your site.
    It’s a very easy on the eyes which makes it much more enjoyable
    for me to come here and visit more often. Did you hire out a
    developer to create your theme? Excellent work!

  43. ラブドール 中出しa very old Indian city on the river _Deva_,or _Gagra_,

Responder a Diplomi_lcSa Cancelar respuesta