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: 116,299

  1. Diplomi_bySn dice:

    где можно купить диплом медсестры [url=www.frei-diplom13.ru]где можно купить диплом медсестры[/url] .

  2. ggbet dice:

    ggbet and electronic wallets, and transfers cash winnings
    is carried out in the same way whenever it is about possible.

  3. Danielsnoni dice:

    п»їRecently, I stumbled upon an informative guide concerning cheap Indian generics. It details WHO-GMP protocols for ED medication. For those interested in Trusted Indian sources, check this out: п»їhttps://kisawyer.us.com/# world pharmacy india. Cheers.

  4. Ralphkic dice:

    п»їLately, I stumbled upon an informative page regarding Indian Pharmacy exports. It covers how to save money for generic meds. If anyone wants Trusted Indian sources, read this: п»їhttps://kisawyer.us.com/# indian pharmacy. It helped me.

  5. Cazrpmh dice:

    [b]Диплом любой специальности[/b]. Мы предлагаем дипломы любой профессии по приятным ценам: [url=http://oppozi.rx22.ru/viewtopic.php?f=37&t=3116/]oppozi.rx22.ru/viewtopic.php?f=37&t=3116[/url]

  6. Ralphkic dice:

    п»їLately, I stumbled upon a great page concerning buying affordable antibiotics. The site discusses how to save money on prescriptions. In case you need factory prices, go here: п»їbest india pharmacy. Hope it helps.

  7. Ralphkic dice:

    п»їJust now, I found a useful resource concerning buying affordable antibiotics. It covers the manufacturing standards on prescriptions. For those interested in factory prices, read this: п»їindian pharmacy paypal. Hope it helps.

  8. Danielsnoni dice:

    п»їTo be honest, I stumbled upon a helpful guide regarding Indian Pharmacy exports. It covers the manufacturing standards when buying antibiotics. If anyone wants factory prices, visit this link: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Good info.

  9. Ralphkic dice:

    п»їRecently, I found a helpful page concerning ordering meds from India. It explains CDSCO regulations for generic meds. In case you need cheaper alternatives, check this out: п»їuseful link. Might be useful.

  10. My family every time say that I am killing my
    time here at net, but I know I am getting knowledge all the time by
    reading such pleasant articles or reviews.

  11. RichardHex dice:

    п»їRecently, I stumbled upon a useful report about generic pills availability. It details the safety protocols when buying antibiotics. If you are looking for reliable shipping to USA, take a look: п»їhttps://polkcity.us.com/# mexican medicine store. Good info.

  12. AnySwap dice:

    This platform exceeded my expectations with quick deposits and robust security. Support solved my issue in minutes.

  13. https://fr-kai-5.lon1.digitaloceanspaces.com/research/%EF%B8%8F-love-shot-(2171).html
    Inspired by daring flowers, a blooming print pops off every inch of this strapless ball gown, from the illusion plunge corset bodice to the complete, sweeping skirt.

  14. Ralphkic dice:

    п»їActually, I discovered a helpful guide regarding generic pills from India. The site discusses how to save money on prescriptions. In case you need Trusted Indian sources, go here: п»їtop 10 pharmacies in india. Hope it helps.

  15. Dennisburry dice:

    [url=https://www.liveinternet.ru/users/interesnye_uvlecheniya/post513668843/]На редкость грамотно и информативно, спасибо. [/url]

  16. Ralphkic dice:

    п»їRecently, I stumbled upon an informative report about cheap Indian generics. It details how to save money on prescriptions. For those interested in factory prices, check this out: п»ї[url=https://kisawyer.us.com/#]website[/url]. Hope it helps.

  17. Diplomi_ofSn dice:

    куплю диплом медсестры в москве [url=http://www.frei-diplom13.ru]куплю диплом медсестры в москве[/url] .

  18. RichardHex dice:

    п»їLately, I stumbled upon an informative resource about buying affordable antibiotics. The site discusses how to save money when buying antibiotics. If anyone wants affordable options, take a look: п»їhttps://polkcity.us.com/# pharmacy online. Good info.

  19. I’m excited to find this website. I want to to thank you for your time due to
    this wonderful read!! I definitely appreciated every
    little bit of it and I have you book-marked to check out new things in your site.

  20. https://fr-korea-6.ams3.digitaloceanspaces.com/research/beauty-(2725).html
    Take this easy however stylish knee-length wedding visitor costume for the mother-of-the-bride.

  21. Ralphkic dice:

    п»їLately, I discovered a helpful report regarding buying affordable antibiotics. It explains WHO-GMP protocols for generic meds. If you are looking for reliable shipping to USA, check this out: п»їkisawyer.us.com. Hope it helps.

  22. 學按摩 dice:

    https://fr-size-8.sgp1.digitaloceanspaces.com/research/%EF%B8%8F-small-(3534).html
    Saks is easily one of the best department shops for buying a mother-of-the-bride costume.

  23. LloydRop dice:

    п»їActually, I came across a great page concerning generic pills availability. It explains FDA equivalents when buying antibiotics. For those interested in affordable options, read this: п»їmexican pharmacies online. Might be useful.

  24. glancingangrily and disrespectfully at Kozlóvski.Through the door came the sounds of Kutúzov,ラブドール 最新

  25. Danielsnoni dice:

    п»їTo be honest, I found a helpful report regarding generic pills from India. It explains CDSCO regulations for ED medication. If you are looking for factory prices, check this out: п»їkisawyer.us.com. Good info.

  26. Carlhex dice:

    I found the Astronaut multiplier game by accident and it totally grabbed my attention, link https://crushtop.org . This mechanic is basic: the character flies up while the number increases, and I need to cash out prior to a crash. Larger volatility brings larger payout, which is why timing feels critical.

    Initially I personally started minimal, mostly to learn the mechanic, but in a few games I already felt the rhythm. This adrenaline is insane each second, especially as that number keeps going up. This interface looks simple, nothing useful confuses, and the whole game runs fast.

    I tried from my phone and it worked without issues. Cashouts felt fast, which feels essential personally. I honestly haven’t seen anything strange during play. To sum it up, this Astronaut game is addictive. When you enjoy quick games, it feels like definitely worth playing.

    Just keep in mind: play smart.

  27. Danielsnoni dice:

    п»їTo be honest, I discovered a great resource regarding ordering meds from India. The site discusses CDSCO regulations on prescriptions. For those interested in Trusted Indian sources, read this: п»їindian pharmacy paypal. Might be useful.

  28. I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

Responder a iziswap Cancelar respuesta