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: 30,245

  1. What’s up it’s me, I am also visiting this web site on a regular basis, this site is truly
    pleasant and the viewers are genuinely sharing nice thoughts.

  2. リアル えろchoked by thebeating of her hearHe spun round on his heels.“Rose! ?he exclaimed,

  3. 你爸爸的鸡巴断了,你倒霉的阴部,你爸爸的网络钓鱼,你妈妈的内脏

  4. I’ve been surfing on-line more than three hours nowadays, but I
    never found any fascinating article like yours. It’s beautiful worth enough
    for me. In my view, if all webmasters and bloggers made good content material as you did, the web will
    probably be a lot more helpful than ever before.

  5. 💡 Excellent work on this ultimate guide! every paragraph is packed with value. It’s obvious a lot of research and love went into this piece. If your readers want to put these 7 steps into action immediately, we’d be honoured to help: 👉 https://meinestadtkleinanzeigen.de/ – Germany’s fastest-growing kleinanzeigen & directory hub. • 100 % free listings • Auto-sync to 50+ local citation partners • Instant push to Google Maps data layer Drop your company profile today and watch the local calls start rolling in. Keep inspiring, and thanks again for raising the bar for German SEO content!

  6. sofa in bed dice:

    Hi it’s me, I am also visiting this web site regularly, this web site is in fact fastidious and the users are really sharing good thoughts.

  7. Casino Bonus dice:

    I am regular reader, how are you everybody? This article posted at this site is really pleasant.

  8. “Call the torch-bearers and make of them aflaming pathway.銉┿儢銉夈兗銉?銈儕銉嬨兗Summon the musicians.

  9. 銉┿儢銉夈兗銉?銈儕銉嬨兗out of the mouths of three soothsayers hath a prophecybeen recorded of a king who shall restore again the throne of theirglory.This do the Jews believe,

  10. 💡 Excellent work on this ultimate guide! every paragraph is packed with value. It’s obvious a lot of research and love went into this piece. If your readers want to put these 7 steps into action immediately, we’d be honoured to help: 👉 https://meinestadtkleinanzeigen.de/ – Germany’s fastest-growing kleinanzeigen & directory hub. • 100 % free listings • Auto-sync to 50+ local citation partners • Instant push to Google Maps data layer Drop your company profile today and watch the local calls start rolling in. Keep inspiring, and thanks again for raising the bar for German SEO content!

  11. whose sweetest notes not even Handel can excell,ドール エロtune yourmelodious throats to celebrate her appearance.

  12. ラブドール ブログI drove up Ludgate Hill and apparently everything was asusual,and it was not until we had driven farther on and hadpenetrated a side street that I saw the wreckage of a house.

  13. オナドールand proceedagainst you according to the law.?“But I.

  14. mba malaysia dice:

    Its such as you learn my thoughts! You appear to grasp so much about this, such
    as you wrote the e-book in it or something. I
    believe that you just can do with some p.c. to power the message house a little bit, but other than that, that is great blog.
    An excellent read. I will definitely be back.

  15. What’s up, for all time i used to check webpage posts here in the early hours in the dawn, since i love to learn more and more.

  16. ドール エロbeing questioned by Thwackum what he had done with themoney for which the horse was sold,he frankly declared he would nottell him.

  17. помощь нарколога [url=www.narkologicheskaya-klinika-11.ru]www.narkologicheskaya-klinika-11.ru[/url] .

  18. Your mode of explaining all in this article is actually fastidious, every one be capable of easily be aware of it,
    Thanks a lot.

  19. for as ithath been long since observed that you may know a man by hiscompanions,so I will venture to say,人形 エロ

  20. AnthonyHow dice:

    isotretinoin from mexico: BorderMeds Express – order kamagra from mexican pharmacy

  21. binance dice:

    Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.com/join?ref=IJFGOAID

  22. the reader may haveformerly guessed) was not over and above pleased with the behaviour ofher husb to be honest,人形 エロshe absolutely hated him,

  23. 銉┿儢銉夈兗銉?銈儕銉嬨兗“a chorus-girl’sprettiness,but—-”“Never mind about her,

  24. Visit Here dice:

    Great weblog right here! Additionally your website so much up very fast!
    What host are you using? Can I get your affiliate
    hyperlink on your host? I want my web site loaded up as fast as yours lol

  25. Cazrsog dice:

    Мы предлагаем дипломы психологов, юристов, экономистов и других профессий по доступным тарифам. Города продажи дипломов — [url=http://kyc-diplom.com/geography.html/]kyc-diplom.com/geography.html[/url]

  26. Square therefore embraced this opportunity of injuring Jonesin the tenderest part,ドール エロby giving a very bad turn to all thesebefore-mentioned occurrences.

  27. Diplomi_iqKi dice:

    купить диплом образца ссср [url=http://educ-ua3.ru]купить диплом образца ссср[/url] .

  28. pin_up_haSa dice:

    pin up demo slotlar [url=pinup5004.ru]pinup5004.ru[/url]

Responder a cosplay outfits Cancelar respuesta