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: 115,251

  1. Danielsnoni dice:

    п»їTo be honest, I stumbled upon a helpful article regarding ordering meds from India. The site discusses how to save money on prescriptions. If you are looking for factory prices, visit this link: п»їhttps://kisawyer.us.com/# buy prescription drugs from india. Worth a read.

  2. Great site, i recommend it to everyone IziSwap

  3. Thanks for your personal marvelous posting! I seriously enjoyed reading it,
    you can be a great author. I will make sure to bookmark your blog and will come
    back someday. I want to encourage continue your great job, have a nice
    morning!

  4. la que es posseedora de mi cora?on y se?ora de mi libertad; angel en forma humana,リアルラブドールmi se?ora Belisea.

  5. casimon dice:

    Link exchange is nothing else however it is only placing the other person’s weblog link on your page at suitable place and
    other person will also do similar in favor of you.

  6. Great site, i recommend it to everyone IziSwap

  7. 推拿師 dice:

    https://classic-blog.udn.com/c3fe3c72/184436890
    This glamorous robe in warm and rich gold enhances all pores and skin tones and pairs beautifully with gold and silver accessories.

  8. Hi to all, as I am actually keen of reading this blog’s post to
    be updated on a regular basis. It contains pleasant information.

  9. Great site, i recommend it to everyone IziSwap

  10. бренд духов пани Валевская,
    https://walewskapani.ru/
    стал символом стиля и гламура.
    Эти парфюмы привлекают внимание своей неповторимостью.

  11. Great site, i recommend it to everyone IziSwap

  12. 整骨學徒 dice:

    https://je-tal-marketing-966.lon1.digitaloceanspaces.com/research/je-marketing-(4).html
    Shopping for a mother of the bride outfit is exciting however it can be overwhelming on the same time.

  13. Danielsnoni dice:

    п»їActually, I discovered a helpful guide regarding generic pills from India. It explains how to save money for generic meds. In case you need Trusted Indian sources, go here: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Good info.

  14. Diplomi_zkSn dice:

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

  15. Great site, i recommend it to everyone IziSwap

  16. LloydRop dice:

    Has anybody tried buying generic pills online. I discovered a verified archive that lists affordable options: п»їUpstate Medical. What do you think?.

  17. Click here dice:

    One minor correction: the update rollout was actually 14 days, not 10. But that doesn’t change your main point—the volatility window is getting wider.

  18. Heya i am for the first time here. I came across this board and I find It truly useful & it helped me out much.
    I hope to give something back and help others like you aided me.

  19. Danielsnoni dice:

    п»їJust now, I found an interesting page about Indian Pharmacy exports. The site discusses WHO-GMP protocols for ED medication. If anyone wants reliable shipping to USA, check this out: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Good info.

  20. RichardHex dice:

    I was wondering about safe Mexican pharmacies. I discovered a good blog that compares safe places: п»ї[url=https://polkcity.us.com/#]polkcity.us.com[/url]. Check it out.

  21. Danielsnoni dice:

    п»їActually, I stumbled upon an interesting article concerning Indian Pharmacy exports. The site discusses how to save money for ED medication. In case you need cheaper alternatives, go here: п»їbuy prescription drugs from india. Might be useful.

  22. RichardHex dice:

    If you want to save money on prescriptions, I recommend reading this report. The site explains trusted Mexican pharmacies. Huge savings at this link: п»ї[url=https://polkcity.us.com/#]polkcity.us.com[/url].

  23. Link exchange is nothing else however it is just placing the
    other person’s weblog link on your page at suitable place and
    other person will also do similar for you.

  24. 撥筋教學 dice:

    https://je-tal-marketing-929.lon1.digitaloceanspaces.com/research/je-marketing-(204).html
    Another floral possibility for you , but this time in a match and flare fashion.

  25. 經絡課程 dice:

    https://fr-morning-5.lon1.digitaloceanspaces.com/research/goodnight-(2283).html
    Sheer stretch tulle and cap sleeves at the neckline add an eye-catching detail, giving the illusion of a strapless look.

  26. Ralphkic dice:

    п»їLately, I discovered a helpful report concerning Indian Pharmacy exports. It explains CDSCO regulations when buying antibiotics. In case you need cheaper alternatives, take a look: п»їhttps://kisawyer.us.com/# india pharmacy. Cheers.

  27. Diplomi_xuSn dice:

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

  28. Danielsnoni dice:

    п»їJust now, I found a great resource concerning cheap Indian generics. The site discusses the manufacturing standards when buying antibiotics. If you are looking for reliable shipping to USA, take a look: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Worth a read.

  29. Ralphkic dice:

    п»їTo be honest, I discovered an informative guide concerning buying affordable antibiotics. It explains CDSCO regulations for ED medication. If you are looking for reliable shipping to USA, read this: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. It helped me.

  30. Danielsnoni dice:

    п»їRecently, I discovered a helpful article regarding cheap Indian generics. It covers WHO-GMP protocols when buying antibiotics. In case you need Trusted Indian sources, read this: п»ї[url=https://kisawyer.us.com/#]п»їlegitimate online pharmacies india[/url]. Good info.

  31. I do not even know the way I ended up here,
    but I assumed this publish was great. I do not recognize
    who you are but certainly you’re going to a famous blogger if you happen to are not already.
    Cheers!

  32. _–No falta conoscimiento si ouiesse obediencia,ラブドール 無 修正pero la fuer?a de la carne es muy antigua.

  33. This post is invaluable. Where can I find out more?

  34. Ralphkic dice:

    п»їTo be honest, I stumbled upon an informative article regarding generic pills from India. It explains WHO-GMP protocols for generic meds. If anyone wants Trusted Indian sources, read this: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Worth a read.

  35. Pretty! This has been a really wonderful article.

    Thanks for providing this information.

  36. slot gacor dice:

    Good day I am so delighted I found your weblog, I
    really found you by error, while I was researching on Yahoo for something else, Anyways I am here now and would just like to say many thanks for a marvelous post and a all round enjoyable blog (I also
    love the theme/design), I don’t have time to read through it all
    at the moment but I have saved it and also included your RSS feeds, so when I have time I will be back to read a great
    deal more, Please do keep up the excellent b.

  37. LloydRop dice:

    п»їLately, I stumbled upon a useful report concerning safe pharmacy shipping. It explains the safety protocols when buying antibiotics. If you are looking for reliable shipping to USA, go here: п»ї[url=https://polkcity.us.com/#]click to read[/url]. Hope it helps.

  38. I am regular reader, how are you everybody? This paragraph posted
    at this site is actually fastidious.

Responder a iziswap partnership Cancelar respuesta