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: 52,096

  1. ラブドール えろI was curious to see whether this man,who had come out equipped with moral ideas of some sort,

  2. Diplomi_ybsa dice:

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

  3. BrettKnins dice:

    cheap prednisolone in UK: order steroid medication safely online – buy prednisolone

  4. JamesFew dice:

    best UK online chemist for Prednisolone [url=https://medreliefuk.com/#]order steroid medication safely online[/url] best UK online chemist for Prednisolone

  5. JamesCaW dice:

    order ED pills online UK: British online pharmacy Viagra – buy sildenafil tablets UK

  6. цена устройства гидроизоляции за м2 [url=http://ustroystvo-gidroizolyacii.ru/]http://ustroystvo-gidroizolyacii.ru/[/url] .

  7. bytheir virility of thought or of creativeness,エロ 下着have made the worlditself more virile.

  8. The transparency around great support is refreshing and builds trust. The updates are frequent and clear.

  9. Diplomi_tcPl dice:

    диплом медсестры с аккредитацией купить [url=https://frei-diplom15.ru/]диплом медсестры с аккредитацией купить[/url] .

  10. ロボット エロve been ringing and pulling at the doorand still they t open! So either tve both fainted or… ?“What? ?“I tell you what. Let,

  11. BrettKnins dice:

    buy prednisolone: best UK online chemist for Prednisolone – order steroid medication safely online

  12. устройство гидроизоляции тоннелей и колодцев [url=http://www.ustroystvo-gidroizolyacii-1.ru]http://www.ustroystvo-gidroizolyacii-1.ru[/url] .

  13. href="https://www.merrss.com/back-shorts/products-1152.html">t バック 画像on Sundays,I heard the bells, dice:

    エッチ な コスプレaprès la mort de safemme et un héritage qu’il avait fait,il s’était retiré auprès deCombray,

  14. пансионат для лежачих тула
    pansionat-tula012.ru
    пансионат для пожилых людей

  15. The trading tools are responsive team and easy onboarding.

  16. Diplomi_aoki dice:

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

  17. Diplomi_ffSn dice:

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

  18. pereplanirovka v nejilom zdanii_xvOl dice:

    перепланировка нежилого помещения [url=aktivnoe.forum24.ru/?1-9-0-00001303-000-0-0]aktivnoe.forum24.ru/?1-9-0-00001303-000-0-0[/url] .

  19. JamesFew dice:

    private online pharmacy UK [url=https://britmedsdirect.com/#]order medication online legally in the UK[/url] private online pharmacy UK

  20. Raymondabsen dice:

    https://amoxicareonline.shop/# generic Amoxicillin pharmacy UK

  21. внутренняя гидроизоляция устройство [url=https://ustroystvo-gidroizolyacii.ru/]ustroystvo-gidroizolyacii.ru[/url] .

  22. 1win_nbOt dice:

    1win promo kod az [url=http://1win5004.com]1win promo kod az[/url]

  23. JamesCaW dice:

    generic amoxicillin: amoxicillin uk – generic amoxicillin

  24. JamesCaW dice:

    UK online pharmacy without prescription: BritMeds Direct – Brit Meds Direct

  25. It’s fantastic that you are getting ideas from this piece
    of writing as well as from our argument made at this time.

  26. The checking analytics process is simple and the low fees makes it even better.

  27. If theywere all out,オナドールthey would have locked the door from the outside with thekey and not with the hook from inside.

  28. セクシー えろI’ll swallow the key before you shall getit! I’m delightfully rewarded for my kindness to each! After constantindulgence of one’s weak nature,and the other’s bad one,

  29. soglasovat proekt pereplanirovki_ehMt dice:

    услуги по перепланировке квартир [url=airlady.forum24.ru/?1-7-0-00004806-000-0-0-1759819216]airlady.forum24.ru/?1-7-0-00004806-000-0-0-1759819216[/url] .

  30. HerbertPef dice:

    https://medreliefuk.shop/# Prednisolone tablets UK online

  31. pereplanirovka v nejilom zdanii_lfOl dice:

    перепланировка нежилого помещения [url=http://aktivnoe.forum24.ru/?1-9-0-00001303-000-0-0]http://aktivnoe.forum24.ru/?1-9-0-00001303-000-0-0[/url] .

  32. It was paddled by black fellows.Youcould see from afar the white of their eyeballs glistening.ロボット セックス

  33. 1win_ncOn dice:

    1win hesab yaratmaq [url=1win5005.com]1win5005.com[/url]

  34. Josephbom dice:

    These bonuses may apply to sports betting or casino games, aiming to attract new players https://only-r-c.mn.co/posts/92084666?utm_source=manual

  35. 初音 ミク ラブドールfor Prognostiquesof the like encounter ever after,but also to believe the likePrognostiques from other of whom they have once conceived a goodopinion.

  36. JamesFew dice:

    buy viagra online [url=http://britpharmonline.com/#]order ED pills online UK[/url] viagra

  37. Diplomi_zhSn dice:

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

  38. HerbertPef dice:

    https://britmedsdirect.shop/# UK online pharmacy without prescription

  39. JamesFew dice:

    generic amoxicillin [url=https://amoxicareonline.com/#]generic Amoxicillin pharmacy UK[/url] generic Amoxicillin pharmacy UK

  40. JamesCaW dice:

    online pharmacy: pharmacy online UK – BritMeds Direct

  41. napagwarì ng mga sacerdote sa religing iyngmalaking di an lamang ang pakikinabangin sa gayng pananampalataya,エロ 着物caya’t kinalacal nila yang mga “bilangguang ngitngit ng dilim napinaghaharìan ng mga pagngangalit sa nagawang casalanan”,

  42. If nuns in theircloister,エロ下着and Jews in their synagogues,

  43. BrettKnins dice:

    buy viagra: viagra – viagra

Responder a pereplanirovka v nejilom zdanii_xvOl Cancelar respuesta