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: 16,812

  1. situs kontol dice:

    Superb site you have here but I was curious about
    if you knew of any community forums that cover the same topics
    talked about in this article? I’d really like to
    be a part of group where I can get comments
    from other knowledgeable individuals that share the same interest.
    If you have any recommendations, please let me know.
    Cheers!

  2. cqobiwes dice:

    This online pharmacy is really very of great help for old ailing patients and physically disabled persons. Screaming, yelling, demanding things, or being rude can’t help the situation. The respiratory therapist’s tasks include supplying the precise measurements of oxygen or other types of gas concentrations inside patient’s blood in addition to measuring blood alkalinity or acidity levels.
    #clonazepam

  3. What’s up, this weekend is nice for me, as this occasion i am reading this enormous educational piece
    of writing here at my home.

  4. Hello there! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.
    If you know of any please share. Appreciate it!

  5. Hi! I could have sworn I’ve been to this web site before but after browsing through a few of the
    posts I realized it’s new to me. Regardless, I’m definitely
    pleased I found it and I’ll be book-marking it and checking back regularly!

  6. nagano tonic official buy online today. Jack Dietitian is your trusted nutrition expert, offers personalized, science-backed advice to boost health and weight loss. Specializing in Nagano Tonic, Jack guides you to a vibrant, balanced lifestyle.

  7. appzmouh dice:

    Pharmacy technicians also usually do not provide advice to patients about medication options, side effects, or another drug information. Screaming, yelling, demanding things, or being rude will not help the situation. The respiratory therapist’s tasks include offering the precise measurements of oxygen or other kinds of gas concentrations in the patient’s blood as well as measuring blood alkalinity or acidity levels.

  8. Ouvrez simplement votre navigateur (Chrome/Safari), visitez notre site, collez le lien de la
    vidéo et téléchargez.

  9. hbilzbrm dice:

    While there is really a small chance you can get laid off (as an example, when the chain supermarket closes some stores) you shouldn’t have much problem finding another job. The local temperature with the medicine producing country is one and the other country may be another, and also the avian temperature could be the other. Veri – Sign and Scan – Alert Hacker Safe are the two names you have to be looking out for as well since these names will proclaim these websites feel safe for paying online.

  10. Fine way of telling, and good paragraph to get facts regarding my presentation topic, which i am going to deliver in school.

  11. Hello I am so thrilled I found your site, I really found you by accident, while I was
    looking on Google for something else, Anyways I am here now and would just like
    to say thanks for a remarkable post and a all round entertaining blog (I also love the theme/design),
    I don’t have time to browse it all at the moment but I have bookmarked
    it and also included your RSS feeds, so when I have time I
    will be back to read a lot more, Please do keep up the
    excellent work.

Responder a arun storage Cancelar respuesta