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: 112,845

  1. Michaelroyar dice:

    https://nyupharm.xyz/# canada discount pharmacy

  2. In dubioque fuit sub utrorum regna cadendum Omnibus humanis esset,terraque marique.人形 エロ

  3. Michaelroyar dice:

    https://nyupharm.xyz/# canadian pharmacy ed medications

  4. I have fun with, result in I found just what I used to
    be looking for. You have ended my four day lengthy hunt!
    God Bless you man. Have a nice day. Bye

  5. The wife of the countryman,ロボット エロthough she may work harder and grow oldearlier,

  6. This is a topic which is near to my heart… Take care! Exactly where are your contact details
    though?

  7. We’re a group of volunteers and starting a new scheme in our community.
    Your web site offered us with valuable information to work on. You have done a formidable job and our entire community
    will be thankful to you.

  8. オナドールhe was alarmed at finding few people there and so being moreconspicuou and he had thought of turning back.Though he was almostfalling from fatigue,

  9. lanadew dice:

    [url=https://natashki.com/]Natashki.com: A World of Bright Encounters. No Fakes, No Limits. All in One Place. Join for Free. >>>[/url]
    h

  10. There’s certainly a great deal to learn about this issue.
    I like all of the points you’ve made.

  11. Thus awaking from the long night of what seemed,but was not,ロシア エロ

  12. I like the valuable info you provide in your articles.
    I’ll bookmark your blog and check again here regularly. I
    am quite certain I’ll learn a lot of new stuff right here!
    Good luck for the next!

  13. JosephDug dice:

    world pharmacy india: Umass India Pharm – Umass India Pharm

  14. CraigWed dice:

    canadian online pharmacy reviews [url=https://nyupharm.xyz/#]canada drugs online review[/url] canadian pharmacy india

  15. Michaelroyar dice:

    http://unmpharm.com/# modafinil mexico online

  16. перевод деловой переписки в бюро [url=https://dzen.ru/a/aUF9L-xpMETlRIxo/]dzen.ru/a/aUF9L-xpMETlRIxo[/url] .

  17. переводы с испанского языка [url=https://dzen.ru/a/aUWp3zsYcxGIPJhQ/]dzen.ru/a/aUWp3zsYcxGIPJhQ[/url] .

  18. bandar toto dice:

    What’s up, all the time i used to check weblog posts here in the early hours in the dawn, since i like to learn more and more.

  19. bk8thai dice:

    My brother suggested I might like this website. He was totally right.
    This post truly made my day. You can not imagine just how much time I had spent for this info!
    Thanks!

  20. Hi to every one, the contents existing at this website are
    actually awesome for people knowledge, well, keep up the good work fellows.

  21. bk8thai dice:

    I like it whenever people get together and share
    opinions. Great blog, keep it up!

  22. вывод. из. запоя. на. дому. москва. [url=https://vyvod-iz-zapoya-4.ru/]vyvod-iz-zapoya-4.ru[/url] .

  23. вывод из запоя московская область [url=https://vyvod-iz-zapoya-5.ru/]вывод из запоя московская область[/url] .

  24. Hi there! This is kind of off topic but I need some advice from an established blog.
    Is it tough to set up your own blog? I’m not very techincal but I can figure things out pretty quick.
    I’m thinking about making my own but I’m not sure where to start.

    Do you have any ideas or suggestions? Thanks

  25. перевод с английского цена [url=https://dzen.ru/a/aUBBvahMInGNj8BL/]dzen.ru/a/aUBBvahMInGNj8BL[/url] .

  26. I all the time used to read article in news papers but now as I
    am a user of internet therefore from now I am using net for posts, thanks to web.

  27. Can you tell us more about this? I’d like to find
    out some additional information.

  28. A scarlet halo begins to glow; and into it the Devil rises,veryMephistophelean,ラブドール アニメ

  29. bk8thai dice:

    Hello would you mind letting me know which webhost you’re working with?
    I’ve loaded your blog in 3 completely different web browsers and I must say this
    blog loads a lot faster then most. Can you suggest a good internet
    hosting provider at a honest price? Kudos, I appreciate it!

  30. Cazrujo dice:

    Заказать диплом любого ВУЗа поспособствуем. Купить диплом магистра в Томске – [url=http://diplomybox.com/kupit-diplom-magistra-v-tomske/]diplomybox.com/kupit-diplom-magistra-v-tomske[/url]

  31. When the purchase is at last made,セックス ドールthere is still some time to be spent by the customer in waiting untilthe clerk has made an abstruse calculation upon his _soroban_,

Responder a CraigWed Cancelar respuesta