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: 24,736

  1. Larryshece dice:

    Yuks?k RTP slotlar [url=https://pinwinaz.pro/#]Pinco kazino[/url] Yeni az?rbaycan kazino sayt?

  2. 여성전용마사지를 찾으신다면 체계적이고 전문적인 시스템을
    갖춘 여성전문샵을 추천합니다. 여성 고객의 몸과 마음을 섬세하게 이해하는 전문 매니저

  3. My family members all the time say that I am wasting my time here at net, however I know I am getting knowledge daily by reading such pleasant content.

  4. Thanks in fabor of sharing suⅽh ɑ nice opinion, piece of writing іs fastidious, thuats ѡhy i hаvе reаd iit entirely

    Ꭺlso visit mmy page; Außenspiegel links

  5. Good way of explaining, and pleasant piece of writing to get data
    about my presentation focus, which i am going to convey in school.

  6. I’m not sure why but this blog is loading incredibly slow for me.
    Is anyone else having this issue or is it a
    problem on my end? I’ll check back later and see if the problem still exists.

  7. Its not mу first time tο visit this website, i am browѕing this
    ѡebѕite dailly and take fastidious information from here daily.

  8. Outstanding quest there. What happened after?

    Take care!

  9. manclub dice:

    Hello! I’ve been reading your site for some time now and finally got the bravery to go
    ahead and give you a shout out from Lubbock Tx!
    Just wanted to mention keep up the great job!

  10. Wow, this paragraph is fastidious, my younger sister is analyzing
    these things, so I am going to convey her.

  11. situs toto dice:

    I’m extremely impressed with your writing skills and also with the layout on your blog.
    Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it’s rare to see a
    nice blog like this one today.

  12. Audifort dice:

    Audifort seems like a thoughtful supplement for
    supporting hearing and overall ear health. I like
    that it focuses on nourishing the auditory system with
    nutrients that may help protect against age-related decline.

    If it truly delivers on its promises, it could be a
    great option for maintaining clear and sharp hearing naturally.

  13. DonaldZew dice:

    GK88: Ca cu?c tr?c tuy?n GK88 – Rut ti?n nhanh GK88

  14. Napi4d Login dice:

    At this moment I am ready to do my breakfast, later than having
    my breakfast coming over again to read additional news.

  15. bandar macau dice:

    wonderful points altogether, you just received a logo new
    reader. What could you suggest about your submit that you
    made some days ago? Any sure?

  16. домашний интернет тарифы пермь
    perm-domashnij-internet004.ru
    недорогой интернет пермь

  17. Scottplaip dice:

    Jiliko bonus: Jiliko login – Jiliko bonus

  18. I absоlutely love your website.. Excellent colors & theme.
    Did you develop this web site yourself?Please repⅼy back as I’m hoping
    to create my own skte and want to know where үou gott thiks from or exaсtly what thee theme iѕ called.

    Thanks!

  19. лечение запоя
    vivod-iz-zapoya-kaluga009.ru
    лечение запоя калуга

  20. Pretty section of content. I just stumbled upon your website and in accession capital to say that I acquire in fact
    loved account your weblog posts. Anyway I will be subscribing on your feeds or even I fulfillment
    you get right of entry to consistently quickly.

  21. tipclub dice:

    You really make it seem so easy with your presentation but I find this
    topic to be actually something which I think I would never understand.

    It seems too complex and very broad for me. I’m looking forward for your next post, I’ll try to get the hang
    of it!

  22. rolet303 dice:

    Terrific work! This is the type of info that are
    meant to be shared around the net. Disgrace on Google
    for no longer positioning this put up upper! Come on over and visit my site .
    Thanks =)

  23. Scottplaip dice:

    Swerte99 slots: Swerte99 login – Swerte99 bonus

  24. Thanks for sharing! The recent extreme weather events in Australia have been shocking, and it’s good to
    see coverage that breaks down both the heatwaves and flooding.

    I noticed how you connected the topic with platforms like
    WFGaming, Free Deposit 365, and freedeposit365 — it’s refreshing to see online engagement discussed alongside major news.

    Looking forward to reading more updates on freenodeposit365,
    freedeposit, free new register, and free tanpa deposit
    in future articles.

  25. evostoto dice:

    I was extremely pleased to discover this website. I need to to thank you for your time just for this fantastic read!!
    I definitely savored every part of it and I have you saved as a favorite to check out new
    stuff on your site.

  26. DonaldZew dice:

    Link alternatif Mandiribet: Mandiribet – Live casino Mandiribet

  27. toto macau dice:

    Good blog you’ve got here.. It’s hard to find good quality writing like yours these days.
    I really appreciate individuals like you! Take care!!

Responder a situs toto Cancelar respuesta