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: 86,153

  1. we turned untoThee and there was light.アダルト フィギュア 無 修正we were sometimes darkness,

  2. dog house слот [url=http://www.wwwpsy.ru]http://www.wwwpsy.ru[/url] .

  3. пластиковые жалюзи с электроприводом [url=https://prokarniz23.ru/]https://prokarniz23.ru/[/url] .

  4. And so it was that (the one for his wife,ラブドール 安いand the other for hisservant,

  5. RichardDycle dice:

    best online canadian pharmacy https://isoindiapharm.com/# IsoIndiaPharm

  6. kvtoto dice:

    Greetings! Very helpful advice in this particular article!
    It’s the little changes that produce the most
    significant changes. Many thanks for sharing!

  7. vouchsafest to those to whom Thou forgivest all of their debts,激安 ラブドールtobecome also a debtor by Thy promises.

  8. 經絡課程 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20251013-9/research/je-marketing-(266).html
    Matching your MOB costume is a enjoyable approach to present you consideration to element.

  9. электронные шторы [url=https://prokarniz23.ru]https://prokarniz23.ru[/url] .

  10. мелбет бонус за регистрацию [url=www.melbetbonusy.ru]www.melbetbonusy.ru[/url] .

  11. “She spoke more and more jerkily.女性 用 ラブドールThe candle went out; I could no longerdistinguish her face.

  12. Amazing things here. I’m very glad to peer your article.
    Thank you so much and I’m looking forward to touch you.
    Will you kindly drop me a mail?

  13. ラブドール 通販Whenever any job was vacant a friend wasalways ready to give him the hard word.He was often to be seen walkingwith policemen in plain clothes,

  14. игры слоты [url=http://www.wwwpsy.ru]http://www.wwwpsy.ru[/url] .

  15. https://jekyll.s3.us-east-005.backblazeb2.com/20251014-4/research/je-marketing-(312).html
    You can buy long sleeves, an extended lace mother of the bride gown, or a beautiful
    ballgown with a ship neckline.

  16. автоматические жалюзи [url=http://www.prokarniz23.ru]автоматические жалюзи[/url] .

  17. Diplomi_rnPn dice:

    купить диплом крестной [url=www.r-diploma19.ru/]купить диплом крестной[/url] .

  18. アダルト フィギュア 無 修正precedeth also the creature of time),yet is the Eternity ofthe Creator Himself before it,

  19. autorohože dice:

    Good blog post. I definitely appreciate this
    site. Continue the good work!

  20. Dan Waffle dice:

    happyhomefinds – Useful home items here, website loads fast without any annoying delay.

  21. endlesslyhappy.ラブドール 安いNor do I think that he is so inebriated therewith,

  22. That is very interesting, You’re an overly skilled blogger.
    I’ve joined your feed and sit up for in quest of
    extra of your excellent post. Additionally, I have
    shared your site in my social networks

  23. Hello there I am so happy I found your weblog, I really found you by mistake, while I was
    researching on Aol for something else, Nonetheless I am here
    now and would just like to say many thanks for a remarkable post and
    a all round interesting blog (I also love the theme/design), I don’t have time to
    look over 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 much more, Please do keep up the excellent work.

  24. Hunterunuse dice:

    IsoIndiaPharm: best india pharmacy – indian pharmacies safe

  25. GSA SER List dice:

    Great website. Lots of useful information here. I am sending it to some friends ans
    additionally sharing in delicious. And certainly, thanks to your effort!

  26. I will right away seize your rss feed as I can’t find your e-mail subscription link or e-newsletter service.
    Do you have any? Kindly allow me realize so that I could subscribe.
    Thanks.

  27. Foresttat dice:

    Uva Pharm [url=https://uvapharm.xyz/#]UvaPharm[/url] UvaPharm

  28. 女性 用 ラブドールEverything else I hadquite succeeded in forgetting by the evening; I dismissed it all and wasstill perfectly satisfied with my letter to Simonov.But on this point Iwas not satisfied at all.

  29. I’m gone to say to my little brother, that he should also pay a quick visit this weblog on regular basis to take updated from
    most up-to-date news.

  30. Link exchange is nothing else except 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.

  31. Heya i’m for the primary time here. I came across this board and
    I to find It really useful & it helped me out a lot.
    I’m hoping to give one thing back and help others like you helped me.

  32. слот dog house megaways [url=https://wwwpsy.ru]https://wwwpsy.ru[/url] .

  33. am I open,ラブドール 安いwhateverI am; and with what fruit I confess unto Thee,

Responder a 腳底按摩教學 Cancelar respuesta