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: 130,625

  1. Hey! Do you use Twitter? I’d like to follow you if that would be okay.
    I’m definitely enjoying your blog and look forward to new updates.

  2. маркетинг в интернете блог [url=https://blog-o-marketinge.ru/]blog-o-marketinge.ru[/url] .

  3. 國產 av dice:

    Hello there, I do believe your site may be having internet browser compatibility problems. When I look at your blog in Safari, it looks fine however, if opening in IE, it’s got some overlapping issues. I merely wanted to provide you with a quick heads up! Other than that, wonderful blog!

  4. ArthurVaree dice:

    To be honest, I just ran into a great resource to buy medication. If you are tired of high prices and want generic drugs, Pharm Mex is worth checking out. They ship to USA and very reliable. Link is here: https://pharm.mex.com/#. Have a nice day.

  5. Great article. I will be facing many of these issues as well..

    My page :: Download Windows 11 Cracked

  6. clock that evening,高級 オナホWeyrother drove with hisplans to Kutúzov,

  7. Heloo great website! Does running a blog like this take a great deal of work?
    I’ve very little expertise in computer programming howqever I
    was hoping to start myy own blog soon. Anyway, should
    you have any ideas or tips for new blog owners please share.
    I understand this is off tlpic but I simply had to
    ask. Thaank you!

  8. ShannonTails dice:

    Great looking internet site. Presume you did a great deal of your very own coding. [url=https://thepostpolitics.gr/oikonomoy-gia-tsipra-an-pote-ypirche-deyteri-fora-gia-ton-syriza-den-tha-einai-allios/]https://thepostpolitics.gr/oikonomoy-gia-tsipra-an-pote-ypirche-deyteri-fora-gia-ton-syriza-den-tha-einai-allios/[/url]
    Hey Danke fuer die schoene Zeit auf dieser Webseite. Macht weiter bitte so. Da komme ich gerne wieder vorbei. ке56нг

  9. Normakeymn dice:

    Wow because this is really helpful job! Congrats and keep it up. [url=http://www.dieukhactuong.com/san-pham/208/trang-tri-halloween-bang-mut-xop.html]http://www.dieukhactuong.com/san-pham/208/trang-tri-halloween-bang-mut-xop.html[/url]
    Nette Website. Vielen Dank. ке56нг

  10. BobbyCem dice:

    Aviator is among the most renowned games in India in 2025 aviator game online

  11. 一饭封神在线免费在线观看,海外华人专属官方认证平台,高清无广告体验。

  12. As soon as he learned that the Russian army was in such a hopelesssituation it occurred to him that it was he who was destined to lead itout of this position,ラブドール 最新that here was the Toulon that would lift him fromthe ranks of obscure officers and offer him the first step to fame!Listening to Bilíbin he was already imagining how on reaching the armyhe would give an opinion at the war council which would be the only onethat could save the army,

  13. intelligent eyes were fixed with sympathy andcommiseration on who saw that Túshin with his whole heartwished to help him but could not.From all sides were heard the footsteps and talk of the infantry,ラブドール 最新

  14. Richarddiept dice:

    That is exactly what the Aviator Game in India is all about. It’s also entertaining online aviator game

  15. BobbyCem dice:

    Aviator is among the most renowned games in India in 2025 online aviator game

  16. –Last night the Count left me early,andlocked himself into his own room.中国 えろ

  17. b2xbet dice:

    Hello There. I discovered your blog the use of msn. That is a very neatly written article. I will be sure to bookmark it and return to learn extra of your helpful information. Thank you for the post. I will certainly comeback.

  18. Deborahjap dice:

    Many thanks for sharing this good internet site. [url=https://ssfied.com/members/aylin-harvey92slclogin-com/media/album/pg/7/]https://ssfied.com/members/aylin-harvey92slclogin-com/media/album/pg/7/[/url]
    Hey Danke fuer die schoene Zeit auf dieser Webseite. Macht weiter bitte so. Da komme ich gerne wieder vorbei. ке56нг

  19. i enjoy reading this great article, i have shared it many times on my website and started following you, Do you post more often ?? i am the owner of https://webdesignagenturbayreuth.de/ a webdesign agency in bayreuth Germany, webdesign agentur bayreuth, you can link up if you are interested. Thank you

  20. Late in the evening,when Rostóv was about to leave,ダッチワイフ 販売

  21. Our weather forecasters are the nation’s greatest comedians, delivering lines like ‘a band of rain moving in from the west’ with the gravitas of a Shakespearean tragedy, a performance art piece critiqued nightly at London’s funniest URL — Prat.UK.

  22. 國產 av dice:

    I go to see each day a few web pages and sites to read posts, however this weblog gives feature based articles.

  23. JamesPyday dice:

    To be honest, Just now found a great Mexican pharmacy for cheap meds. If you are tired of high prices and need generic drugs, this site is a game changer. No prescription needed plus very reliable. Visit here: [url=https://pharm.mex.com/#]read more[/url]. Get well soon.

  24. hi88 dice:

    Hello there! This article couldn’t be written any better! Looking through this article reminds me of my previous roommate! He continually kept preaching about this. I am going to forward this information to him. Pretty sure he will have a very good read. Thanks for sharing!

  25. Richarddiept dice:

    That is exactly what the Aviator Game in India is all about. It’s also entertaining aviator game download

  26. winpot dice:

    Hi there, just wanted to tell you, I loved this post. It was inspiring. Keep on posting!

  27. my dear young friend–n let me warn you with allseriousness,that should you leave these rooms you will not by anychance go to sleep in any other part of the castle.中国 えろ

  28. Thi is a great article no doubt about it, i just started following you and i enjoy reading this piece. Do you post often ? we have similar post on the german best freelancer platform you can check it out if you want. Trusted source by Google.Thank you

Responder a av 女優 Cancelar respuesta