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: 92,839

  1. buy ethena dice:

    I value the wide token selection and robust security. This site is reliable. The updates are frequent and clear.

  2. Diplomi_lkor dice:

    купить диплом в гатчине [url=https://www.rudik-diplom3.ru]https://www.rudik-diplom3.ru[/url] .

  3. Diplomi_idma dice:

    диплом высшего образования с занесением в реестр купить [url=http://www.frei-diplom3.ru]диплом высшего образования с занесением в реестр купить[/url] .

  4. Diplomi_jrOr dice:

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

  5. Diplomi_uaMt dice:

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

  6. Diplomi_hmsa dice:

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

  7. Its like you read my mind! You appear to know a lot about this,
    like you wrote the book in it or something. I think that you can do with a few
    pics to drive the message home a little bit, but other than that, this is great blog.
    A fantastic read. I will certainly be back.

  8. Meine Arthrose-Beschwerden sind geringer. Hondrolife
    ist wirklich effektiv!

    Natürliches Mittel gegen Arthritis

  9. Diplomi_zdKr dice:

    купить диплом агронома [url=https://rudik-diplom4.ru]купить диплом агронома[/url] .

  10. Augustskalf dice:

    The popular bookmaker 1xBet is a universal gaming platform https://www.imdb.com/list/ls4103319212/

  11. It is an unnatural assembly ofobjects,fantastically illuminated in broken masses,エロ 人形

  12. I personally find that i value the responsive team and scalable features. This site is reliable.

  13. Diplomi_xzPl dice:

    купить диплом энергетика [url=rudik-diplom7.ru]купить диплом энергетика[/url] .

  14. Diplomi_ijkr dice:

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

  15. заказать кухню в спб по индивидуальному проекту [url=http://www.kuhni-spb-4.ru]http://www.kuhni-spb-4.ru[/url] .

  16. футбол прогнозы [url=prognozy-na-futbol-10.ru]футбол прогнозы[/url] .

  17. Diplomi_ispa dice:

    купить диплом логиста [url=www.rudik-diplom5.ru]купить диплом логиста[/url] .

  18. Diplomi_rwpn dice:

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

  19. s scheme ofthus using one character as the foil of another,though not conspicuousfor its originality,sex ドール

  20. sex ドールI am not going to weary you with the details of all the business we wentthrough,and one reason for not telling about them i that I did notunderstand what we were doing at the time,

  21. DavidbaK dice:

    buy clomid [url=http://clomicareusa.com/#]get cheap clomid price[/url] Clomid price

  22. オナホ フィギュアs providence we picked up anotherfootman,called Umphry Klinker,

  23. せっくす どー るespying a small body of hussarsreturning to the camp with the plunder they had taken,she invokedtheir assistance,

  24. Diplomi_joel dice:

    диплом купить реестр [url=www.frei-diplom2.ru]диплом купить реестр[/url] .

  25. Diplomi_vgma dice:

    купить диплом с занесением в реестр челябинск [url=www.frei-diplom3.ru]купить диплом с занесением в реестр челябинск[/url] .

  26. Redfern good to you? ? ?have been very happy and Barney was very good to me,?sad Valancy,ラブドール 女性 用

  27. せっくす どー るand Miss exhorted him to keep uphis spirits,with many expressions of unreserved sympathy and regard.

  28. Diplomi_lhOr dice:

    Купить диплом колледжа в Николаев [url=www.educ-ua7.ru/]www.educ-ua7.ru/[/url] .

  29. Diplomi_wqMt dice:

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

  30. Diplomi_qqor dice:

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

  31. エロ 人形towake the maids of a morning.Do you know where I could find one of hisbrood? ?‘Probably in the work-house at St Giles,

  32. изготовление кухонь на заказ в санкт петербурге [url=http://www.kuhni-spb-4.ru]изготовление кухонь на заказ в санкт петербурге[/url] .

  33. хоккей сегодня прогноз [url=www.prognozy-na-khokkej4.ru]www.prognozy-na-khokkej4.ru[/url] .

  34. I personally find that this platform exceeded my expectations with wide token selection and intuitive UI.

  35. lovedoll?“Do you still refuse to do this for me? ?“Of course I refuse.I will have absolutely nothing to do with it.

  36. Diplomi_rokr dice:

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

  37. Viscortix dice:

    I used to be able to find good info from your blog articles.

  38. Diplomi_ytPl dice:

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

  39. Herhead drooped.She wiped her eyes with shaking hand “Sibyl has amother,ラブドール 販売

  40. These are actually wonderful ideas in on the topic of blogging.
    You have touched some nice factors here. Any way keep
    up wrinting.

  41. ставки на футбол сегодня 100 процентный [url=https://prognozy-na-futbol-10.ru/]prognozy-na-futbol-10.ru[/url] .

  42. Diplomi_rhpn dice:

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

  43. more frightened,according to the sawbones,ラブドール av

  44. ラブドール リアルPresents were present and one did not look them in thismanner in the mouth,he fel and if Lady Caroline found her pleasurein presenting his wife and Fisher with their entire food for aweek,

  45. кухни на заказ петербург [url=http://kuhni-spb-4.ru]кухни на заказ петербург[/url] .

  46. I switched from another service because of the reliable uptime and intuitive UI. I moved funds across chains without a problem.

  47. DavidbaK dice:

    cheap zithromax [url=https://zithromedsonline.com/#]generic zithromax[/url] zithromax z- pak buy online

  48. lovedollAt last he got up and began to pace up and down the room,looking like a beautiful caged thing.

Responder a Diplomi_idma Cancelar respuesta