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: 28,148

  1. vPS dice:

    It’s a pity you don’t have a donate button! I’d most certainly donate to this fantastic blog!
    I guess for now i’ll settle for bookmarking and adding your RSS
    feed to my Google account. I look forward to brand new updates and will talk about this site with my Facebook group.
    Talk soon!

  2. ElijahCah dice:

    Tadalify: cialis price – Tadalify

  3. Howdy! Quick question that’s completely off topic.

    Do you know how to make your site mobile friendly?
    My site looks weird when viewing from my apple iphone.
    I’m trying to find a theme or plugin that might be able to correct
    this issue. If you have any suggestions, please share. Appreciate it!

  4. RichardSof dice:

    how much does cialis cost per pill: cialis active ingredient – Tadalify

  5. Thank you, I have recently been looking for info about this topic for a while and yours is the greatest I’ve found
    out till now. However, what about the conclusion? Are you certain about the source?

  6. Men's Growth dice:

    Men’s Growth is designed to naturally support male vitality,
    stamina, and overall performance. With its blend
    of targeted ingredients, it aims to boost energy, confidence, and long-term wellness.
    Many men appreciate it as a safe and effective way to maintain strength and feel
    more empowered in daily life.

  7. I’m really enjoying the design and layout of your blog.
    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 designer to create your theme?
    Exceptional work!

  8. Aqua Tower dice:

    Aqua Tower looks really impressive! I like how it combines modern design with a practical way to store and dispense clean water.
    It’s space-saving, stylish, and super convenient for everyday use.
    Definitely a smart addition for anyone who wants easy access to
    fresh water at home or in the office.

  9. ставки прогнозы [url=http://www.stavki-prognozy-2.ru]http://www.stavki-prognozy-2.ru[/url] .

  10. RobertBat dice:

    SildenaPeak [url=http://sildenapeak.com/#]viagra tablet 25 mg price in india[/url] sildenafil citrate

  11. Hmm it seems like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I
    had written and say, I’m thoroughly enjoying your blog. I as well am an aspiring
    blog writer but I’m still new to the whole thing. Do you
    have any recommendations for first-time blog writers?
    I’d certainly appreciate it.

  12. Yo, buddy, I just discovered something weirdly brilliant, I had to pause my life and tell you.

    This thing is a design explosion. It’s packed with color chaos, creative magic, and just the right amount of mad energy.

    Think I’m kidding? Alright, [url=https://building-relationships.gde-ti.ru/how-not-to-let-routine-kill-your-love-7223649/]go look right this moment[/url]!

    Didn’t click? Fine. Imagine a caffeinated unicorn coded a site after arguing with ChatGPT. That’s the frequency this beast gives.

    So click already, and send it to your friends. Because no lie, this is next-level.

    Boom.

  13. What a information of un-ambiguity and preserveness of precious experience about unpredicted emotions.

  14. Hey! This is kind of off topic but I need some guidance 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 setting up my own but I’m not sure where to
    begin. Do you have any tips or suggestions? With thanks

  15. I appreciate, result in I found exactly what I was taking
    a look for. You’ve ended my 4 day long hunt! God Bless you man.
    Have a nice day. Bye

  16. PeterCalse dice:

    cialis effectiveness: Tadalify – Tadalify

  17. вывод из запоя круглосуточно смоленск
    vivod-iz-zapoya-smolensk010.ru
    лечение запоя смоленск

  18. av dice:

    … [Trackback]

    […] Find More on that Topic: politraining.upiita.ipn.mx/infraestructura-como-codigo/ […]

  19. RobertBat dice:

    ED treatment without doctor visits [url=https://kamameds.shop/#]Affordable sildenafil citrate tablets for men[/url] Online sources for Kamagra in the United States

  20. constantly i used to read smaller articles which
    as well clear their motive, and that is also happening with this piece of writing
    which I am reading now.

  21. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  22. melbet_rqKr dice:

    зеркало melbet [url=https://melbet3006.com/]https://melbet3006.com/[/url]

  23. PeterCalse dice:

    buying cialis online safely: cialis generic 20 mg 30 pills – cialis payment with paypal

  24. GeorgeDes dice:

    To learn more about FIVE STARS MARKETS and how it works, including real user experiences, check out the full overview at cafe-aranciato.jp

  25. Booster Pump dice:

    … [Trackback]

    […] Find More Info here on that Topic: politraining.upiita.ipn.mx/infraestructura-como-codigo/ […]

  26. Stavki Prognozy [url=http://stavki-prognozy-two.ru/]http://stavki-prognozy-two.ru/[/url] .

Responder a Booster Pump Cancelar respuesta