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: 82,045

  1. электрокарнизы для штор цена [url=http://elektrokarniz1.ru/]http://elektrokarniz1.ru/[/url] .

  2. I am not sure where you are getting your info, but
    great topic. I needs to spend some time learning much more or understanding more.
    Thanks for fantastic info I was looking for this info for my mission.

  3. ???? ????? – ???? ???? ??? [url=http://www.aviator-game-predict.com]http://www.aviator-game-predict.com[/url] .

  4. электрические гардины [url=elektrokarnizy77.ru]электрические гардины[/url] .

  5. winbet299 dice:

    Somebody essentially assist to make critically articles I might state.

    This is the first time I frequented your web
    page and to this point? I amazed with the research you made
    to create this particular submit amazing. Great activity!

  6. Spot on with this write-up, I actually feel this site
    needs a lot more attention. I’ll probably be back again to read through more,
    thanks for the advice!

  7. togel online dice:

    Hi! I just would like to offer you a huge thumbs up for
    your excellent information you have here on this post. I’ll be
    returning to your website for more soon.

  8. психиатрическая клиника стационар
    psikhiatr-moskva011.ru
    частный психиатр на дом в москве

  9. aeroplane money game [url=https://aviator-game-deposit.com/]https://aviator-game-deposit.com/[/url] .

  10. карниз для штор с электроприводом [url=www.elektrokarniz98.ru/]карниз для штор с электроприводом[/url] .

  11. slot dana dice:

    I’m extremely impressed with your writing skills as well as with the layout on your blog.

    Is this a paid theme or did you customize it yourself?

    Anyway keep up the nice quality writing, it is rare to see a nice blog
    like this one these days.

  12. TristanFag dice:

    AeroMedsRx [url=https://aeromedsrx.xyz/#]Viagra online price[/url] sildenafil online

  13. электрокарнизы москва [url=www.elektrokarniz495.ru]www.elektrokarniz495.ru[/url] .

  14. Diplomi_lePr dice:

    купить диплом вгпу [url=https://r-diploma13.ru]купить диплом вгпу[/url] .

  15. TristanFag dice:

    kamagra oral jelly [url=https://bluewavemeds.com/#]online pharmacy for Kamagra[/url] buy Kamagra online

  16. Davidkib dice:

    buy cialis pill: EveraMeds – Cialis without a doctor prescription

  17. Jamessouch dice:

    [url=https://backontwo.com/]Checking a vehicle by its registration number[/url] is a reliable way to understand the real condition of a vehicle before investing, and it becomes especially valuable when exploring the world of Back On Two, a professional workshop dedicated to rebuilding motorcycles, cars and unique automotive classics. With a simple number lookup, enthusiasts can discover key details that reveal the mechanical background of the vehicle, and such information often defines whether a project has true potential. Back On Two offers a wide selection of vehicles and motorcycles ready for restoration, giving every enthusiast a chance to find the project that fits their vision. Whether a person is just entering the restoration world or already experienced, Back On Two provides detailed guidance throughout the entire process. Many restoration journeys begin with a simple number check, which quickly evolves into a deep exploration of the vehicle’s story, and with Back On Two, each project is approached with respect for its history and engineering. Classic motorcycles, vintage cars and forgotten machines can be transformed into powerful, beautiful and fully functional creations when handled with the right knowledge. With Back On Two, enthusiasts gain access to a combination of technical research, hands-on expertise and artistic restoration vision, allowing them to restore machines to life with confidence. The team behind Back On Two focuses on creating high-quality, accurate and authentic rebuilds, ensuring every restoration becomes a meaningful journey. A vehicle number check is therefore not just a bureaucratic step, but a gateway to discovering hidden mechanical potential. Back On Two continues to lead this field by offering enthusiasts a trusted, knowledgeable and inspiring environment where every project — from motorcycles to classic cars — can grow into a masterpiece.
    https://backontwo.com/

  18. Diplomi_ojSn dice:

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

  19. and had been marked by his quietness and even a certain mysteriousness;for he had spent all the time that he lodged at Peski lying on his bedbehind the screen,ラブドール 通販without talking or having any sort of relations withany one.

  20. Davidkib dice:

    cialis for sale: EveraMeds – EveraMeds

  21. Hey! This is kind of off topic but I need some advice from an established blog.
    Is it tough to set up your own blog? I’m not very techincal
    but I can figure things out pretty quick. I’m thinking about creating
    my own but I’m not sure where to begin. Do you have any tips or suggestions?
    With thanks

  22. Jasonpleby dice:

    Носитель языка проверит – перевод документов с русского на английский онлайн. Перевод справок в Самаре. Нотариальное заверение. Срочно и недорого. Гарантия принятия в учреждениях. Точно.

  23. jet game money [url=http://www.aviator-game-predict.com]http://www.aviator-game-predict.com[/url] .

  24. карнизы для штор с электроприводом [url=http://elektrokarniz1.ru/]http://elektrokarniz1.ru/[/url] .

  25. электрические карнизы купить [url=http://elektrokarniz2.ru]http://elektrokarniz2.ru[/url] .

  26. электрокарниз недорого [url=http://elektrokarniz-dlya-shtor15.ru]http://elektrokarniz-dlya-shtor15.ru[/url] .

  27. TristanFag dice:

    buy cialis pill [url=http://everameds.com/#]Buy Cialis online[/url] EveraMeds

Responder a IsraelGax Cancelar respuesta