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: 26,192

  1. Jamesbet dice:

    Mexican Pharmacy Hub: buy meds from mexican pharmacy – prescription drugs mexico pharmacy

  2. Houstonmib dice:

    top 10 pharmacy websites [url=https://medidirectusa.com/#]MediDirect USA[/url] target pharmacy lipitor

  3. Visit dice:

    Heya i’m for the primary time here. I came across this board
    and I to find It really helpful & it helped me out much. I am hoping to
    present one thing again and aid others such as you aided me.

  4. えろ 人形Ireally cannot laugh at it.You are safe from me.

  5. вывод из запоя цена
    vivod-iz-zapoya-omsk004.ru
    экстренный вывод из запоя омск

  6. No matter if some one searches for his essential thing, therefore
    he/she wishes to be available that in detail, therefore that thing is
    maintained over here.

  7. Shari Blumenstock,a researcher at the Kinsey Institute,ダッチワイフ エロ

  8. Women with a negative body image tended to also report stress and anxiety.A lack of lubrication,ドール アダルト

  9. there’s surprisingly little research out there on the subject—and almost all of it has focused on college students.As a result,ラブドール オナニー

  10. He has many friends,and he isat a time of life when friends and engagements are continuallyincreasing.エロ ラブドール

  11. Very descriptive blog, I enjoyed that bit. Will there
    be a part 2?

  12. Thanks to my father who informed me regarding this web
    site, this web site is genuinely remarkable.

  13. I will immediately take hold of your rss feed as I can’t to find your email subscription link or e-newsletter service.
    Do you have any? Please permit me recognize so that I may just subscribe.
    Thanks.

  14. I know this website gives quality depending content and additional material,
    is there any other website which presents such information in quality?

  15. proekt pereplanirovki v Moskve _goOn dice:

    проект реконструкции квартиры [url=https://www.doskamarta.borda.ru/?1-0-0-00000089-000-0-0-1754485821]проект реконструкции квартиры[/url] .

  16. ufabet dice:

    Hey I know this is off topic but I was wondering if you knew
    of any widgets I could add to my blog that automatically tweet
    my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would
    have some experience with something like this. Please let me know if you run into anything.
    I truly enjoy reading your blog and I look forward to your
    new updates.

  17. At this time it seems like Expression Engine is the preferred blogging platform available right now.

    (from what I’ve read) Is that what you’re using on your blog?

  18. This paragraph offers clear idea in favor of the new visitors of blogging, that actually how to do
    blogging and site-building.

  19. Lazropv dice:

    Заказать диплом института!
    Мы изготавливаем дипломы любых профессий по невысоким тарифам— [url=http://diplomovoz.ru/]diplomovoz.ru[/url]

  20. 1win_vzkr dice:

    1×win [url=www.1win1172.ru]www.1win1172.ru[/url]

  21. Justinstync dice:

    indian pharmacies safe: Indian Meds One – Indian Meds One

  22. Good day! 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 blog covers a lot of the same topics as yours and I think we could greatly benefit from each other.
    If you are interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Superb blog by
    the way!

  23. wps官网 dice:

    Very quickly this web page will be famous amid all blogging people, due to it’s good content

Responder a Cosmetology clinic in Marbella_pvoa Cancelar respuesta