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: 114,095

  1. 整復師 dice:

    https://fr-tour-6.ams3.digitaloceanspaces.com/research/star-(2977).html
    You also can coordinate with the MOB to make sure your selections complement one another.

  2. RichardHex dice:

    Heads up, a detailed analysis on buying meds safely. It breaks down how to avoid scams for antibiotics. Source: п»їhttps://polkcity.us.com/# mexico online pharmacy.

  3. 整復師 dice:

    https://fr-seafood-1.atl1.digitaloceanspaces.com/research/yearbook-(136).html
    As versatile as is elegant, this icy blue frock is the right transition piece to take you from the ceremony to the reception.

  4. Ralphkic dice:

    п»їActually, I found an informative article regarding generic pills from India. It explains how to save money for ED medication. If you are looking for cheaper alternatives, check this out: п»їhttps://kisawyer.us.com/# Online medicine home delivery. Cheers.

  5. Discover the best bonuses and games on[url=https://khelovip-affiliate.com/]khelbo vip[/url]right now!
    Khelovip online is designed to be accessible to both novices and veteran gamers.

  6. Discover the best bonuses and games on[url=https://khelovip-affiliate.com/]???? ??????[/url]right now!
    Help resources and clear instructions assist users in mastering games and strategies.

  7. Discover the best bonuses and games on[url=https://khelovip-affiliate.com/]khelo vip casino[/url]right now!
    Users at khelovip online have access to attentive customer service.

  8. Danielsnoni dice:

    п»їJust now, I discovered a great guide about cheap Indian generics. The site discusses the manufacturing standards when buying antibiotics. In case you need cheaper alternatives, go here: п»ї[url=https://kisawyer.us.com/#]reputable indian online pharmacy[/url]. Cheers.

  9. Very well researched…. Really makes complex topics easy to understand.馃憤

  10. 汽水音乐 dice:

    This really helped me understand things better…. Even beginners can follow this easily..

  11. https://je-tal-marketing-977.lon1.digitaloceanspaces.com/research/je-marketing-(443).html
    With over 1,868 5 star reviews and coming in properly under $100, this Gatsby style Maxi gown is certain to impress.

  12. Danielsnoni dice:

    п»їJust now, I found a useful page about generic pills from India. The site discusses CDSCO regulations for generic meds. If anyone wants factory prices, read this: п»їhttps://kisawyer.us.com/# cheapest online pharmacy india. Good info.

  13. 按摩課程 dice:

    https://fr-seafood-7.blr1.digitaloceanspaces.com/research/yearbook-(3024).html
    The mom of the bride and groom should dress in a way that doesn’t clash but isn’t too matchy-matchy either.

  14. RichardHex dice:

    If you want to save on pharmacy costs, I recommend visiting this report. The site explains trusted Mexican pharmacies. Huge savings found here: п»їhttps://polkcity.us.com/# mexican pharmacys.

  15. The checking analytics process is simple and the responsive team makes it even better.

  16. I’ve been active for almost a year, mostly for using the bridge, and it’s always wide token selection. Charts are accurate and load instantly.

  17. Immerse yourself in the exciting world of gambling with [url=https://lava-game.org/]lavagame ???????????[/url] and try your luck right now!
    Users can explore numerous games within Lavagame, all developed with distinctive features and eye-catching visuals.

  18. Immerse yourself in the exciting world of gambling with [url=https://lava-game.org/]lavagames[/url] and try your luck right now!
    Lavagame fosters a vibrant community where gamers can interact, share strategies, and challenge one another.

  19. Immerse yourself in the exciting world of gambling with [url=https://lava-game.org/]lavagames[/url] and try your luck right now!
    By prioritizing security, Lavagame cultivates user confidence and a trustworthy environment.

  20. RichardHex dice:

    For those looking to save cash on meds, you should try reading this page. The site explains shipping costs. Best prices at this link: п»їpolkcity.us.com.

  21. LloydRop dice:

    If you want to save cash on meds, I recommend reading this archive. It reveals prices for generics. Discounted options found here: п»їpolkcity.us.com.

  22. 撥筋證照 dice:

    https://fr-seafood-5.lon1.digitaloceanspaces.com/research/yearbook-(2345).html
    If you like your legs, you could need to go along with an above-the-knee or just-below-the-knee costume.

  23. toto macau dice:

    Hello outstanding website! Does running a blog
    like this require a lot of work? I have very little knowledge
    of programming but I had been hoping to start my own blog in the near future.
    Anyways, if you have any suggestions or techniques for new blog owners please share.
    I know this is off topic however I just had to ask.

    Thanks a lot!

Responder a Anónimo Cancelar respuesta