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: 90,054

  1. and,エロ 人形perceiving the names of several old friends,

  2. лучшие агентства seo продвижения [url=http://reiting-seo-kompanii.ru]http://reiting-seo-kompanii.ru[/url] .

  3. 整復師 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20251014-10/research/je-marketing-(138).html
    Today’s mother of the bride collections encompass
    figure-flattering frocks which would possibly be designed to intensify your mum’s greatest bits.

  4. melbet bonus [url=https://www.melbetbonusy.ru]https://www.melbetbonusy.ru[/url] .

  5. Ramonicede dice:

    pharmacy price compare [url=http://muscpharm.com/#]Musc Pharm[/url] Musc Pharm

  6. The practical value of the information you’ve shared here is immeasurable. Thank you!

  7. https://je-tal-marketing-885.lon1.digitaloceanspaces.com/research/je-marketing-(147).html
    A twinset can have a “fuddy duddy” popularity,
    however it definitely doesn’t should look old fashioned.

  8. 撥筋證照 dice:

    https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-801/research/je-marketing-(187).html
    One of our favorite things about Karen Kane is that they’re dimension inclusive and have options for all sizes.

  9. Spravkiitb dice:

    Требуется медкнижка в течение суток без визита в больницу? На [url=https://med-bez-boli.ru]https://med-bez-boli.ru[/url] можно заказать или продлить медкнижку легально, без обследования — быстро и легально. Сотрудничаем с реальной клиникой и оформляем актуальные санитарные книжки, оформляем настоящую медкнижку, которую фиксируют в единой системе. Это комфортно, официально и доступно по разумной цене. https://med-bez-boli.ru Узнайте подробности — оформление без медосмотра, срочное оформление, медкнижка онлайн.

  10. 撥筋課程 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20251015-3/research/je-marketing-(489).html
    This costume’ dreamy chiffon cape feels ceremonial and refined, and is
    well removed to disclose a slinkier metallic sheath
    beneath for dinner and dancing.

  11. 撥筋課程 dice:

    https://je-tal-marketing-937.lon1.digitaloceanspaces.com/research/je-marketing-(159).html
    Modest meets insanely trendy on this silky Amsale robe featuring a column silhouette
    and off-the-shoulder neckline.

  12. 按摩課程 dice:

    https://fr-well-8.sgp1.digitaloceanspaces.com/research/%EF%B8%8F-france-(3589).html
    Our top-rated sizes vary from 00 – 32 to additionally include petite products.

  13. How could the presence of thesearticles in my house affect either the honour,ラブドール avthe sanity,

  14. https://je-tal-marketing-886.lon1.digitaloceanspaces.com/research/je-marketing-(35).html
    Guests love to look at the joy and pride seem
    on your face as you watch your daughter marry their finest pal.

  15. 推拿學徒 dice:

    https://fr-asia-5.lon1.digitaloceanspaces.com/research/asia-business-(2138).html
    And finally, don’t fear about trying to only ‘age-appropriate’ boutiques.

  16. бонусы мелбет [url=http://www.melbetbonusy.ru]http://www.melbetbonusy.ru[/url] .

  17. MY DEAREST COMPANION,えろ 人形The pleasure I received from your which came to hand isnot to be expressed.

  18. For latest news you have to pay a visit internet and on world-wide-web I found this website as a most excellent website for
    hottest updates.

  19. https://je-tal-marketing-888.lon1.digitaloceanspaces.com/research/je-marketing-(20).html
    You might imagine it’s customary for the mother
    of the bride to wear an over-sized hat, however that’s simply
    not the case for 2022.

  20. https://fr-tour-2.sfo3.digitaloceanspaces.com/research/star-(823).html
    Make certain to let the mom of the groom know what you’ll be wearing.

  21. ラブドール 最 高級when his curiosity was attracted by certainpeculiarities in the appearance of a man who lived in one of the upperapartments belonging to the house in which he himself had fixed hishabitation.This was a tall,

  22. escort bayan dice:

    Have you ever thought about including a little bit more than just your articles?
    I mean, what you say is important and all. However think about if you added some great images or videos to give your posts more, “pop”!
    Your content is excellent but with images and
    videos, this blog could definitely be one of the very best
    in its niche. Excellent blog!

  23. 經絡課程 dice:

    https://je-tal-marketing-918.lon1.digitaloceanspaces.com/research/je-marketing-(6).html
    Neither a daytime occasion nor a proper summer time evening soiree requires a full-length gown.

  24. JoshuaMes dice:

    most reliable canadian pharmacies http://muscpharm.com/# canadian pharmacy no prescription

  25. 按摩課程 dice:

    https://fr-korea-4.tor1.digitaloceanspaces.com/research/beauty-(1891).html
    Red Dress has some very lovely and elegant dresses, and they’re affordable.

Responder a JasonBom Cancelar respuesta