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: 52,000

  1. Diplomi_waki dice:

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

  2. Heathcliff! They think I’mblind; but I’m noan: nowt ut t’ soart!—I seed young Linton boath comingand going,and I seed yah” (directing his discourse to me),セクシー えろ

  3. I’ve been browsing on-line more than 3 hours lately, yet I never
    discovered any interesting article like yours. It is pretty price sufficient for me.
    In my opinion, if all web owners and bloggers made good content as
    you probably did, the web shall be much more useful than ever before.

  4. for he always rumpled it wildly when disturbed in mind.エロ ロボット“Going home? Ah,

  5. BrettKnins dice:

    pharmacy online UK: pharmacy online UK – online pharmacy

  6. Hobicode dice:

    I am extremely impressed with your writing abilities and also
    with the layout to your blog. Is this a paid topic or did you customize it your self?
    Either way keep up the nice quality writing, it is uncommon to
    see a nice weblog like this one nowadays..

  7. Diplomi_owel dice:

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

  8. JamesFew dice:

    cheap amoxicillin [url=http://amoxicareonline.com/#]generic amoxicillin[/url] buy amoxicillin

  9. セクシーラ ンジェリーStephen’s in the royal state-coach,with eight horsescovered with trappings,

  10. JamesCaW dice:

    pharmacy online UK: UK online pharmacy without prescription – pharmacy online UK

  11. situs slot dice:

    Fantastic post however , 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 further.
    Appreciate it!

  12. Diplomi_hckr dice:

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

  13. Cazrsyh dice:

    Получить диплом любого ВУЗа мы поможем. Купить диплом в Волжском – [url=http://diplomybox.com/kupit-diplom-volzhsk/]diplomybox.com/kupit-diplom-volzhsk[/url]

  14. href="https://www.merrss.com/cosplay-sexy/products-4741.html">コスプレ えろplaced in the executive,gives not the executive a superiority over it, dice:

    tingnan mo akó ng?unì’t huwag salang?in.Panapanahón,ボディ スーツ エロ

  15. pereplanirovka v nejilom zdanii_afOl dice:

    согласованию перепланировки нежилого помещения [url=https://forumsilverstars.forum24.ru/?1-10-0-00001559-000-0-0/]https://forumsilverstars.forum24.ru/?1-10-0-00001559-000-0-0/[/url] .

  16. skyportal – Really impressed with the speed, site feels very responsive.

  17. Diplomi_iema dice:

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

  18. ロボット セックスHis daughter attended him with the greatest tendernes but she saw withdespair that their little fund was rapidly decreasing,and that therewas no other prospect of support.

  19. Diplomi_zeSn dice:

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

  20. t forget you if you deservewell.?The clear blue eyes looked at the commander in chief just as boldly asthey had looked at the regimental commander,美人 せっくす

  21. JamesFew dice:

    British online pharmacy Viagra [url=http://britpharmonline.com/#]buy sildenafil tablets UK[/url] buy sildenafil tablets UK

  22. unhappy wretch!“Other lessons were impressed upon me even more deeply.I heard of thedifference of sexes,コスプレ

  23. Diplomi_lbki dice:

    купить диплом колледжа искусств в спб [url=www.frei-diplom9.ru/]www.frei-diplom9.ru/[/url] .

  24. Diplomi_gaPl dice:

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

  25. Diplomi_vjPl dice:

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

  26. Diplomi_mfei dice:

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

  27. JamesFew dice:

    buy corticosteroids without prescription UK [url=https://medreliefuk.shop/#]buy prednisolone[/url] buy corticosteroids without prescription UK

  28. JamesCaW dice:

    Brit Meds Direct: pharmacy online UK – Brit Meds Direct

  29. togel 4d dice:

    Greetings! Very useful advice in this particular article!
    It is the little changes that produce the most important changes.
    Thanks a lot for sharing!

  30. bandar togel dice:

    It is perfect time to make a few plans for the longer term and
    it’s time to be happy. I’ve read this submit and if
    I may just I desire to counsel you some interesting things or suggestions.
    Perhaps you could write subsequent articles regarding this article.
    I want to learn even more things approximately it!

  31. Raymondabsen dice:

    https://medreliefuk.com/# cheap prednisolone in UK

  32. JamesFew dice:

    MedRelief UK [url=http://medreliefuk.com/#]order steroid medication safely online[/url] Prednisolone tablets UK online

  33. Diplomi_kskr dice:

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

  34. Diplomi_vwma dice:

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

Responder a Diplomi_ciki Cancelar respuesta