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: 23,182

  1. Sân chơi May88 đã nhanh chóng trở thành sân chơi giải trí
    ưa chuộng của các tín đồ cược trực tuyến. Được thành
    lập từ năm 2016, May88 đã hoạt động
    hợp pháp tại Cơ quan minh bạch của Nghị viện và Ủy ban Châu
    Âu. Trong suốt quá trình phát triển, nền tảng này mang đến kho game đa dạng gồm đá gà,…
    Khám phá thêm thông tin bên dưới để hiểu rõ hơn về thương hiệu uy
    tín này.

  2. игровой компьютер цена в москве [url=www.kupit-igrovoj-kompyuter8.ru]www.kupit-igrovoj-kompyuter8.ru[/url] .

  3. Thanks for sharing your thoughts about laboratory moving services.
    Regards

  4. Right now it sounds like Expression Engine is the
    top blogging platform out there right now.

    (from what I’ve read) Is that what you are using on your blog?

  5. Fine way of explaining, and fastidious article to taқe factѕ ab᧐ut my presentation subject, ѡhich i am going tߋ deliver in academy.

    Feel free tо surf to my web page: Sports Betting

  6. ラブドールand no clothing proper for theapproaching season,and the American agent for themselves and otherprisoners,

  7. u88 dice:

    Cổng game U88 Bet là nền tảng cá cược
    đáng tin cậy, cung cấp sân chơi cá cược hiện đại với đa dạng trò chơi hấp
    dẫn như thể thao, casino, slot game. Truy cập U88 Bet chính thức để trải
    nghiệm cá cược ổn định, khuyến mãi khủng,
    hỗ trợ thanh toán siêu tốc và dịch vụ CSKH liên tục.

  8. Art Nuner dice:

    Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! However, how can we communicate?

  9. вывод из запоя краснодар
    narkolog-krasnodar007.ru
    экстренный вывод из запоя

  10. binance dice:

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  11. I feel so queer! Oh,リアル ラブドールit is too lovely!” and Bethhid her face in Jo’s apron,

  12. Greetings! This is my first comment here so I just wanted to give
    a quick shout out and tell you I truly enjoy reading your articles.
    Can you suggest any other blogs/websites/forums that
    deal with the same topics? Thanks a lot!

  13. фрибеты winline на сегодня бесплатно [url=https://winline-bonus-za-registraciyu-2025.ru]https://winline-bonus-za-registraciyu-2025.ru[/url] .

  14. –“O my Teddy! O my Teddy!””Dear you are glad to see me,エロ ロボットthen?””Glad! My blessed boy,

  15. Great work! This is the type of information that should
    be shared around the web. Shame on the seek engines for now not positioning this put up higher!

    Come on over and visit my web site . Thank you =)

  16. Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how can we communicate?

  17. I’m not sure where you’re getting your information, but great topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for excellent information I was looking for this information for
    my mission.

  18. винлайн бонус при регистрации без депозита [url=https://www.winline-fribet-kazhdyj-den.ru]винлайн бонус при регистрации без депозита[/url] .

  19. домашний интернет челябинск
    chelyabinsk-domashnij-internet005.ru
    тарифы интернет и телевидение челябинск

  20. I think the admin of this web page is genuinely working hard in favor of his web page,
    for the reason that here every material is quality based stuff.

  21. Hello my friend! I want to say that this article is awesome, nice written and come
    with almost all vital infos. I would like to see extra posts like this .

  22. GichardSep dice:

    Hey there, I think your website might be having browser compatibility issues. When I look at your website in Firefox, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!
    https://www.google.com.iq/url?sa=t&url=https://cabseattle.com/

  23. 中国 エロat the outset by an incidentwhich left the most sinister impression upon my mind.The approach tothe spot at which the tragedy occurred is down a narrow,

Responder a udintogel Cancelar respuesta