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: 61,926

  1. Diplomi_ihpn dice:

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

  2. read write dice:

    Someone necessarily help to make seriously articles I might state.
    This is the first time I frequented your web page and to this point?
    I surprised with the research you made to make
    this actual put up incredible. Wonderful process!

  3. casa-nana.net – The tone is caring and supportive—very appropriate for the cause.

  4. turnerhallrestaurant.com – The design strikes a nice balance between casual and upscale.

  5. Joi Los dice:

    trendingnewsfeed.net – the website has a sharp and modern design; nice first impression.

  6. 1xbet giris [url=https://www.1xbet-giris-3.com]1xbet giris[/url] .

  7. 1xbet_kxEa dice:

    1xbet spor bahislerinin adresi [url=http://1xbet-7.com]http://1xbet-7.com[/url] .

  8. Jody Reyers dice:

    pastorjorgetrujillo.com – Looking forward to future updates and seeing how the website evolves.

  9. Hello, this weekend is good in support of me, because this occasion i am
    reading this fantastic educational piece of writing here at my
    house.

  10. Randynuamy dice:

    Sildenafil zonder recept bestellen: veilige online medicijnen Nederland – officiële Sildenafil webshop

  11. meetkatemarshall.com – The writing tone comes across as genuine and relatable, good work.

  12. situs toto dice:

    It’s a shame you don’t have a donate button! I’d most certainly donate to this superb
    blog! I suppose for now i’ll settle for book-marking and adding
    your RSS feed to my Google account. I look forward to fresh updates and will talk about this blog with
    my Facebook group. Talk soon!

  13. dankglassonline.com – Found the content interesting; looks like they cover a unique niche.

  14. 1xbet_ieMl dice:

    birxbet giri? [url=https://1xbet-9.com/]https://1xbet-9.com/[/url] .

  15. What’s up Dear, are you actually visiting this website daily,
    if so after that you will definitely get fastidious experience.

  16. opensky-inc.com – I’ll keep an eye on how this site develops in future updates.

  17. 1xbet_bjkt dice:

    1xbet ?yelik [url=https://1xbet-4.com/]https://1xbet-4.com/[/url] .

  18. Getting ready to have our photograph taken, getting our makeup
    performed, wearing nicer dresses than we’ve ever seen in our earlier
    than lives. “But who wouldn’t want it?

  19. This is a great article, i am simply a fun, keep up the good work, just finish reading from https://websiteerstellenlassenbamberg.de// and their work is fantastic. i will be checking your content again if you make next update or post. Thank you

  20. moeinclub.com – Some posts feel brief and could benefit from more depth or images.

  21. muralspotting.com – I appreciate the geographical diversity of the artworks showcased.

  22. Leonie Credo dice:

    muralspotting.com – Navigation is smooth and the design feels modern and approachable.

  23. centensports.com – I like the layout and how the content is structured; good readability.

  24. Eli Safi dice:

    bigprintnewspapers.com – Pages load quickly and the overall experience is smooth.

  25. Nalalaman cong lahat,コス エロsa pagca’t ng una’y aco’y mayaman!Nguni’t ang taong sinasabi co po sa inyo’y hindi cawangis ng mgaiba: siya’y isang anac na inalimura dahil sa pagaalaala sa canyangama; siya’y isang binata,

  26. ” />safercharging.com – (Note: I saw a small URL redirect oddness when checking a link.)

  27. Randynuamy dice:

    betrouwbare online apotheek: betrouwbare online apotheek – erectiepillen discreet bestellen

  28. cepjournal.net – The website layout is modern and clean, which makes navigating through content comfortable.

  29. Jamesfep dice:

    https://mannensapotek.shop/# kop receptfria potensmedel online

  30. 1xbet_zmMl dice:

    birxbet [url=https://1xbet-9.com]https://1xbet-9.com[/url] .

  31. Diplomi_sgEa dice:

    купить диплом в славянске-на-кубани [url=https://rudik-diplom6.ru/]https://rudik-diplom6.ru/[/url] .

  32. Diplomi_atEt dice:

    диплом техникума купить в [url=http://www.frei-diplom11.ru]диплом техникума купить в[/url] .

  33. 1xbet_phkt dice:

    1xbet ?yelik [url=https://1xbet-4.com/]https://1xbet-4.com/[/url] .

  34. Martin Bio dice:

    brucknerbythebridge.com – The site does a good job of balancing text and imagery; very readable.

  35. reindeermagicandmiracles.com – Price and booking info could be a bit more upfront—but fine overall.

  36. Diplomi_tbkr dice:

    купить диплом в пятигорске [url=http://www.rudik-diplom2.ru]купить диплом в пятигорске[/url] .

  37. Jamesfep dice:

    https://confiafarmacia.shop/# Viagra sin prescripcion medica

  38. Diplomi_lfst dice:

    купить диплом в канске [url=rudik-diplom14.ru]купить диплом в канске[/url] .

  39. Davidjusty dice:

    Sildenafil utan recept [url=http://mannensapotek.com/#]MannensApotek[/url] MannensApotek

  40. Diplomi_fyOr dice:

    купить диплом техникума 1989 [url=www.frei-diplom12.ru]купить диплом техникума 1989[/url] .

  41. 1xbet_vuMl dice:

    1 x bet [url=www.1xbet-9.com/]www.1xbet-9.com/[/url] .

  42. 1xbet_cbEa dice:

    1xbet resmi sitesi [url=www.1xbet-7.com]www.1xbet-7.com[/url] .

  43. 1xbet_jbkt dice:

    1xbet yeni giri? adresi [url=http://www.1xbet-4.com]http://www.1xbet-4.com[/url] .

  44. Today, I went to the beachfront with my children.
    I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She
    put the shell to her ear and screamed. There was a hermit crab inside
    and it pinched her ear. She never wants to go back!
    LoL I know this is totally off topic but I had to tell someone!

  45. see here dice:

    Howdy! I know this is kinda off topic however I’d
    figured I’d ask. Would you be interested in exchanging links or maybe guest
    authoring a blog post or vice-versa? My website covers a lot of the same subjects as yours and I believe
    we could greatly benefit from each other. If you
    are interested feel free to send me an email. I look forward to hearing from you!
    Fantastic blog by the way!

  46. 1xbet_yzMl dice:

    one x bet [url=1xbet-9.com]1xbet-9.com[/url] .

  47. Jesussmeds dice:

    Viagra genérico online España: comprar Sildenafilo sin receta – ConfiaFarmacia

Responder a learn more here Cancelar respuesta