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: 54,854

  1. потолочник отзывы [url=https://stretch-ceilings-nizhniy-novgorod-1.ru/]stretch-ceilings-nizhniy-novgorod-1.ru[/url] .

  2. натяжные потолки потолки [url=http://natyazhnye-potolki-nizhniy-novgorod-1.ru]натяжные потолки потолки[/url] .

  3. Careynum dice:

    trusted online pharmacy for ED meds [url=https://tadalifepharmacy.com/#]safe online pharmacy for Cialis[/url] trusted online pharmacy for ED meds

  4. mostbet aviator [url=www.mostbet4185.ru]mostbet aviator[/url]

  5. agenolx dice:

    Hi, always i used to check website posts here in the early hours
    in the morning, for the reason that i enjoy to find out more and more.

  6. экстренный вывод из запоя
    narkolog-krasnodar019.ru
    вывод из запоя круглосуточно

  7. Right here is the perfect site for everyone who wants to understand this topic.
    You understand so much its almost tough to argue with you (not that I personally will need to…HaHa).
    You certainly put a fresh spin on a topic which has been discussed
    for a long time. Excellent stuff, just wonderful!

  8. findyourfuture – Found useful info quickly, layout feels very friendly.

  9. Andrewmub dice:

    mexico pharmacy: mexico pharmacy – hydrocodone mexico pharmacy

  10. shopping dice:

    Terrific post but I was wanting to know if you could
    write a litte more on this subject? I’d be very grateful if you could
    elaborate a little bit more. Appreciate it!

  11. 高級 ラブドールleafless gold of thejunper-trees and glmmered among the grey beeche lghtng upevergreen banks of moss and washng the colonnades of the pne Dayswth a hgh-sprung sky of flawless turquose.Days when an exqustemelancholy seemed to hang over the landscape and dream about the lake.

  12. потолки в нижнем новгороде [url=www.natyazhnye-potolki-nizhniy-novgorod-1.ru]потолки в нижнем новгороде[/url] .

  13. HermanCrock dice:

    http://medicosur.com/# farmacia mexicana en chicago

  14. компания потолочник [url=https://stretch-ceilings-nizhniy-novgorod-1.ru/]stretch-ceilings-nizhniy-novgorod-1.ru[/url] .

  15. Right here is the right webpage for anybody who would like to understand this topic.
    You understand so much its almost hard to argue with you (not that I personally will
    need to…HaHa). You definitely put a fresh spin on a topic that’s been written about for a long time.
    Wonderful stuff, just wonderful!

  16. Quinn Commes dice:

    nextvision – If this is a promotional page, they need stronger details for trust.

  17. Careynum dice:

    mexican pharmacy [url=https://medicosur.shop/#]mexican pharmacy[/url] MedicoSur

  18. uniquefashionstyle – The clean layout enhances the overall shopping journey.

  19. Diplomi_zuOr dice:

    сколько стоит купить диплом в одессе [url=https://educ-ua7.ru/]https://educ-ua7.ru/[/url] .

  20. paraswap dice:

    I personally find that i value the robust security and low fees. This site is reliable.

  21. Diplomi_fwKr dice:

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

  22. mostbet uz savollar va javoblar [url=https://mostbet4185.ru/]https://mostbet4185.ru/[/url]

  23. мостбет казино регистрация [url=mostbet4182.ru]мостбет казино регистрация[/url]

  24. мостбет узкард вывод [url=http://mostbet4185.ru]http://mostbet4185.ru[/url]

  25. натяжные потолки нижний новгород дешево [url=https://stretch-ceilings-nizhniy-novgorod-1.ru/]натяжные потолки нижний новгород дешево[/url] .

  26. Website offers a natural, plant-derived solution to treat nail fungus, improve nail strength, and restore self-confidence.

  27. Andrewmub dice:

    pharmacia mexico: mexican pharmacy – mexico pharmacy

  28. ?She became very earnest,ダッチワイフ エロjust as she did when trying patiently to helpand enlighten the poor.

  29. Angel Sidi dice:

    trustconnectionnetwork – Checkout process is swift and secure, enhancing the overall experience.

  30. Powered by botanical extracts, Website supports healthy nail growth, fights fungus, and helps you regain confidence.

  31. Joette Bacot dice:

    strategicgrowthalliance – Love the clean layout and intuitive user interface.

  32. Diplomi_gjpn dice:

    можно ли купить легальный диплом [url=https://www.frei-diplom5.ru]https://www.frei-diplom5.ru[/url] .

  33. toto dice:

    Hi, i think that i saw you visited my site thus i came to “return the favor”.I’m trying
    to find things to improve my web site!I suppose its ok to use some
    of your ideas!!

  34. Fuck Putin dice:

    I’ve been using it for a week for using the bridge, and the stable performance stands out.

  35. Andresdix dice:

    MedicoSur: mexican pharmacy – mexico meds

  36. оформить проект перепланировки квартиры [url=https://www.proekt-pereplanirovki-kvartiry16.ru]https://www.proekt-pereplanirovki-kvartiry16.ru[/url] .

  37. натяжные потолки потолочкин [url=https://stretch-ceilings-nizhniy-novgorod-1.ru/]натяжные потолки потолочкин[/url] .

  38. Diplomi_lzsi dice:

    купить диплом занесением в реестр [url=https://www.frei-diplom4.ru]купить диплом занесением в реестр[/url] .

  39. Careynum dice:

    ZenCare Meds [url=https://zencaremeds.shop/#]ZenCare Meds[/url] buy propecia

  40. Paris Cafaro dice:

    trustedbusinesslink – Really polished and professional, trust seems built well across pages.

  41. Diplomi_kaor dice:

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

  42. You can certainly see your expertise in the article you write.
    The sector hopes for even more passionate writers like you who
    aren’t afraid to say how they believe. All the time follow your heart.

  43. slot dana dice:

    Your style is unique in comparison to other folks I have read
    stuff from. Thanks for posting when you’ve got the opportunity, Guess I will just bookmark this site.

  44. Hmm is anyone else experiencing problems with the pictures on this blog loading?
    I’m trying to determine if its a problem on my end or
    if it’s the blog. Any suggestions would be greatly appreciated.

  45. These are really enormous ideas in regarding blogging.

    You have touched some pleasant factors here. Any way keep up wrinting.

  46. Diplomi_bwon dice:

    купить диплом в муроме [url=https://www.rudik-diplom11.ru]купить диплом в муроме[/url] .

  47. The disadvantage of a non-removable denture is everything that he requires more thorough daily
    cleaning, https://www.reverery.com/understanding-the-benefits-of-denture-services/ care, including the use of
    dental floss under the denture.

Agrega tu comenatio