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: 112,034

  1. 推拿學徒 dice:

    https://fr-morning-1.atl1.digitaloceanspaces.com/research/goodnight-(100).html
    To achieve the proper stability of comfort and formality, we’ve included
    tea length mom of the bride dresses, too.

  2. Wonderful goods from you, man. I’ve understand your stuff previous
    to and you are just too wonderful. I really like what you have acquired here,
    really like what you’re stating and the way in which you say it.
    You make it enjoyable and you still care for to keep it wise.
    I can’t wait to read far more from you. This is really a terrific web
    site.

  3. https://je-tal-marketing-983.lon1.digitaloceanspaces.com/research/je-marketing-(83).html
    Whatever the situation, when you’ll be able to attend a wedding, you’ll need to
    look your finest.

  4. https://je-tal-marketing-920.lon1.digitaloceanspaces.com/research/je-marketing-(225).html
    To make hers, mother JoJo Cohen turned to her close friend,
    the late designer L’Wren Scott.

  5. https://fr-size-05.lon1.digitaloceanspaces.com/research/%EF%B8%8F-small-(2369).html
    One mother’s blush apparel seemed lovely against these two brides’ romantic wedding attire.

  6. What’s up, yes this post is in fact nice and I have learned lot of things
    from it on the topic of blogging. thanks.

  7. 撥筋創業 dice:

    https://fr-korea-7.fra1.digitaloceanspaces.com/research/beauty-(3259).html
    Ask your son for his enter, and/or attain out to your future daughter-in-law
    that can help you select a dress.

  8. Diplomi_fnSn dice:

    диплом медсестры с аккредитацией купить [url=frei-diplom13.ru]диплом медсестры с аккредитацией купить[/url] .

  9. https://fr-korea-6.ams3.digitaloceanspaces.com/research/beauty-(2873).html
    Oleg Cassini, exclusively at David’s Bridal Polyester,
    spandex Back zipper; absolutely lined Hand wash Imported.

  10. 銉┿儢銉夈兗銉?銈儕銉嬨兗but it issuspected that there is some sort of a union of toilers.Suchsocieties would be like a worm in the heart to our profits,

  11. https://fr-morning-3.sfo3.digitaloceanspaces.com/research/goodnight-(1008).html
    Her strapless and blush pink gown, with textured
    floral particulars and an embellished belt, had this mom smiling from ear to ear.

  12. https://fr-friends-2.syd1.digitaloceanspaces.com/research/nothing-at-all-(752).html
    With over five years of expertise in bridal, she is
    an skilled on all issues trend.

  13. https://portfolio-lwofqeh.format.com/blog/467682
    Embroidery artfully positioned in vertical traces elongates a
    lady’s silhouette, making mothers look taller, longer, and leaner.

  14. 撥筋教學 dice:

    https://fr-cabinet-9.ams3.digitaloceanspaces.com/research/Stuck-in-paris-(4488).html
    However, coordination is still crucial for chic photographs on the large day.

  15. 整復師 dice:

    https://fr-cabinet-1.atl1.digitaloceanspaces.com/research/Stuck-in-paris-(51).html
    Kay Unger’s maxi romper combines the look of a maxi costume with pants.

  16. JosephDug dice:

    Unm Pharm: safe place to buy semaglutide online mexico – real mexican pharmacy USA shipping

  17. Michaelroyar dice:

    http://unmpharm.com/# safe place to buy semaglutide online mexico

  18. https://fr-kai-8.fra1.digitaloceanspaces.com/research/%EF%B8%8F-love-shot-(3531).html
    We’re in love with the muted florals on this romantic mother-of-the-bride robe.

  19. CraigWed dice:

    canadian pharmacy ratings [url=https://nyupharm.com/#]Nyu Pharm[/url] canadian pharmacy meds reviews

  20. https://fr-cabinet-2.syd1.digitaloceanspaces.com/research/Stuck-in-paris-(947).html
    Here’s a tea-length mother-of-the-bride dress you possibly
    can simply pull out of your wardrobe time and time again.

  21. MARRIAGE CUSTOMSKing Mehevi—Conduct of Marheyo and Mehevi in certain delicatematters—Peculiar system of marriage—Number ofpopulation—Uniformity—Embalming—Places of sepulture—Funeral obsequiesat Nukuheva—Number of inhabitants in Typee—Location of thedwellings—Happiness enjoyed in the valley.銉┿儢銉夈兗銉?銈儕銉嬨兗CHAPTER XXVI.

Responder a how to hack animal hunting sniper shooter jungle safari Cancelar respuesta