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: 85,944

  1. melbet_ddKn dice:

    melbet app download [url=https://melbet5011.ru]https://melbet5011.ru[/url]

  2. I’ll right away grab your rss as I can’t in finding your email
    subscription hyperlink or e-newsletter service. Do you’ve any?
    Kindly allow me recognize in order that I could subscribe.

    Thanks.

  3. https://je-tal-marketing-886.lon1.digitaloceanspaces.com/research/je-marketing-(309).html
    Our Mother of the Bride Dresses contains a huge collection of
    formal gowns and attire that match into any
    budget.

  4. melbet_wnKa dice:

    melbet live casino [url=www.melbet5012.ru]www.melbet5012.ru[/url]

  5. RichardDycle dice:

    my canadian pharmacy http://mhfapharm.com/# canadian pharmacy 365

  6. kl99 link dice:

    Heya terrific blog! Does running a blog such as this require a great deal of work?
    I have no knowledge of coding however I was hoping to start my own blog soon. Anyways, if
    you have any recommendations or techniques for new blog
    owners please share. I understand this is off subject however
    I just wanted to ask. Many thanks!

  7. 撥筋創業 dice:

    https://je-tal-marketing-892.lon1.digitaloceanspaces.com/research/je-marketing-(492).html
    However, the one rule for carrying sequin dresses is to keep
    accessories and make-up refined.

  8. RichardDycle dice:

    canadian pharmacy online https://mhfapharm.com/# MhfaPharm

  9. 整骨學徒 dice:

    https://je-tal-marketing-897.lon1.digitaloceanspaces.com/research/je-marketing-(190).html
    This glittery lace-knit two-piece features a sleeveless cocktail dress and coordinating longline jacket.

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

  11. https://je-tal-marketing-980.lon1.digitaloceanspaces.com/research/je-marketing-(477).html
    The bridesmaids collected the recipes and created them
    right into a newlyweds cookery guide that they gave the couple up their day.

  12. melbet_zkKn dice:

    verifică bilet melbet [url=http://melbet5011.ru/]http://melbet5011.ru/[/url]

  13. Fantastic goods from you, man. I’ve understand your stuff previous
    to and you’re just too excellent. I actually like
    what you’ve acquired here, really like what you are saying and the
    way in which you say it. You make it entertaining and you still care for to keep it wise.
    I can’t wait to read far more from you. This is really a terrific website.

  14. These are really fantastic ideas in regarding blogging.

    You have touched some pleasant points here. Any way keep up wrinting.

  15. I was able to find good info from your blog posts.

  16. Appreciate the recommendation. Will try it out.

  17. 撥筋教學 dice:

    https://je-tal-marketing-983.lon1.digitaloceanspaces.com/research/je-marketing-(258).html
    Grab wonderful online offers on mom of the bride attire now and get free delivery within the United States.

  18. 撥筋創業 dice:

    https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-709/research/je-marketing-(499).html
    With a mild match on the hips, this dress is designed to flatter you in all the proper places.

  19. melbet_ltKn dice:

    oglindă melbet [url=http://melbet5011.ru]http://melbet5011.ru[/url]

  20. https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-717/research/je-marketing-(439).html
    Steer away from something too close to white corresponding to champagne and beige colours with out speaking to your daughter beforehand.

  21. What’s up, every time i used to check blog posts here in the
    early hours in the break of day, for the reason that i like
    to gain knowledge of more and more.

    Feel free to visit my web site Massage Forum

  22. melbet welcome bonus [url=www.melbetbonusy.ru/]www.melbetbonusy.ru/[/url] .

Responder a Roberterymn Cancelar respuesta