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: 108,435

  1. Hi, of course this article is actually good and
    I have learned lot of things from it regarding blogging.
    thanks.

  2. 撥筋教學 dice:

    https://je-tal-marketing-956.lon1.digitaloceanspaces.com/research/je-marketing-(268).html
    This mom also wore Nigerian attire, and paired her lace wrap costume with a chartreuse gele.

  3. Diplomi_vvMl dice:

    купить диплом для колледжа [url=https://r-diploma7.ru]https://r-diploma7.ru[/url] .

  4. What a data of un-ambiguity and preserveness of precious knowledge on the topic of unexpected emotions.

  5. 撥筋課程 dice:

    https://fr-accounting-12.sfo3.digitaloceanspaces.com/research/business-world-(820).html
    This sheath dress and sequin capelet combination boasts a modest neckline
    and high-slit skirt making it directly subtle and horny.

  6. CraigWed dice:

    Unm Pharm [url=http://unmpharm.com/#]order kamagra from mexican pharmacy[/url] buy antibiotics over the counter in mexico

  7. https://fr-accounting-13.atl1.digitaloceanspaces.com/research/business-world-(1294).html
    The mom of the bride and groom should dress in a method that doesn’t
    conflict but isn’t too matchy-matchy both.

  8. Kennethpem dice:

    indian pharmacy paypal: best india pharmacy – online shopping pharmacy india

  9. https://fr-well-9.blr1.digitaloceanspaces.com/research/%EF%B8%8F-france-(4382).html
    However, the graphic styling of the flowers gives the costume a contemporary look.

  10. https://je-tal-marketing-891.lon1.digitaloceanspaces.com/research/je-marketing-(322).html
    From impartial off-white numbers to bold, punchy, and fashion-forward designs, there’s
    something here that may suit her fancy.

  11. 按摩課程 dice:

    https://fr-seafood-2.syd1.digitaloceanspaces.com/research/yearbook-(607).html
    With cap sleeves and an illusion neckline, this fitted blue beauty was good for
    this D.C.

  12. 經絡課程 dice:

    https://fr-tour-6.ams3.digitaloceanspaces.com/research/star-(2669).html
    The glossy silk materials glides seamlessly over your figure, however an ankle-length
    skirt, excessive neckline and draped sleeves
    maintain issues modest.

  13. 按摩教學 dice:

    https://fr-tour-4.tor1.digitaloceanspaces.com/research/star-(1937).html
    Avoid flashy shades like shiny pink, pink or yellow because the dress might stand out too much.

  14. Vigorjp dice:

    Hey there! I’ve been reading your site for some time now and finally got the courage to go
    ahead and give you a shout out from Porter Tx! Just wanted to mention keep up the excellent
    work!

  15. 整復學徒 dice:

    https://je-tal-marketing-907.lon1.digitaloceanspaces.com/research/je-marketing-(74).html
    Even higher, it will look great paired with heeled or flat sandals—whichever
    helps you are feeling your finest on the dance flooring.

  16. situs slot dice:

    Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite some time and
    was hoping maybe you would have some experience
    with something like this. Please let me know if you run into anything.
    I truly enjoy reading your blog and I look forward to
    your new updates.

  17. https://fr-korea-1.nyc3.digitaloceanspaces.com/research/beauty-(176).html
    Similar to the moms of the bride and groom, the grandmothers may need to
    coordinate with the wedding party.

  18. Diplomi_qwEi dice:

    красноярск купить диплом о [url=http://r-diploma27.ru]красноярск купить диплом о[/url] .

  19. 經絡課程 dice:

    https://fr-korea-1.nyc3.digitaloceanspaces.com/research/beauty-(130).html
    Plus, the silhouette of this gown will look that a lot more show-stopping as the cape wafts down the aisle to
    disclose her silhouette as she strikes.

Responder a Kennethpem Cancelar respuesta