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,965

  1. I’m not that much of a online reader to be honest but your sites really nice, keep it up!
    I’ll go ahead and bookmark your site to come back later.
    Cheers

  2. Ahaa, its nice conversation regarding this article here at this website, I have read all
    that, so at this time me also commenting here.

  3. Hello there! This post couldn’t be written any better!
    Reading this post reminds me of my old room mate!
    He always kept talking about this. I will forward this post to him.
    Pretty sure he will have a good read. Many thanks
    for sharing!

  4. pwreypkl dice:

    It doesn’t seem fair people do not have cheap drugs available for purchase and that they may be burdened with spending the rest of their life worrying about a thing that could affect their survival like this. ” A good response to this just isn’t “I’m looking for a job. Veri – Sign and Scan – Alert Hacker Safe are the two names you need to be looking out for as well as these names will proclaim why these websites feel at ease for paying online.

  5. After exploring a number of the blog articles on your web site,
    I seriously appreciate your way of writing a blog. I saved as a favorite it to my bookmark webpage list and will be checking back in the
    near future. Take a look at my web site too and tell me what you think.

  6. DonaldDum dice:

    A casino with exciting slot machines and thousands of gambling games to play [url=https://www.skypixel.com/users/djiuser-ltlyvsru3pxx]https://www.skypixel.com/users/djiuser-ltlyvsru3pxx[/url]

  7. I visit day-to-day a few sites and information sites
    to read posts, however this weblog provides feature based writing.

  8. tvxowqgp dice:

    Pharmacy technicians also tend not to provide advice to patients about medication options, side effects, or any other drug information. Ask the managers of the places in which you enjoy shopping if they have these kinds of programs, should you aren’t already frequenting CVS and Winn-Dixie. com or call 877 636 Rx – Rx – About The Founders – Sandy A Reese Rigg, RN, Rph – Susan Chin Jackson, RPh – Both graduated from St.
    #tetracycline

  9. Thanks for another great article. Where else may just anyone get that kind of info in such a perfect manner of writing?
    I have a presentation subsequent week, and I’m at the look for such info.

  10. fwdgnb dice:

    The pharmaceutical industry especially can’t afford to allow its practitioners to delay or refuse management of clients due for the perceived use of any medical device, whether it’s a pill or possibly a syringe. You may also check out “Physician Assistant Is a Top Healthcare Career. If possible try to use the identical pharmacy just as much as possible.

  11. Appreciating the hard work you put into your website
    and in depth information you offer. It’s good to come across a blog every once in a
    while that isn’t the same old rehashed material. Fantastic read!
    I’ve bookmarked your site and I’m including your RSS feeds to my Google account.

  12. I was very pleased to discover this website. I need to to
    thank you for ones time just for this fantastic read!! I definitely appreciated every
    bit of it and i also have you book-marked to look at new
    stuff in your blog.

  13. vrjbyf dice:

    1 teaspoon grated fresh ginger, or 1-2 lumps of preserved ginger, chopped. Screaming, yelling, demanding things, or being rude will not help the situation. com or call 877 636 Rx – Rx – About The Founders – Sandy A Reese Rigg, RN, Rph – Susan Chin Jackson, RPh – Both graduated from St.

  14. Very good article. I definitely love this site. Keep it
    up!

Responder a jk ラブドール Cancelar respuesta