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: 112,584

  1. 露骨材料平台 提供广泛的成人娱乐视频选择。选择 可靠平台 以获得保密体验。

    Review my blog – sildenafil original

  2. Diplomi_fbEr dice:

    Мы готовы предложить документы любых учебных заведений, расположенных на территории Российской Федерации.
    Приобрести диплом о высшем образовании: [url=http://greatgame.world/wiki/index.php?title=User:RosariaCantor49]greatgame.world/wiki/index.php?title=User:RosariaCantor49[/url]

  3. Tremendous issues here. I’m very happy to see your article.
    Thanks so much and I’m looking ahead to touch you. Will you please drop me a mail?

  4. What’s up Dear, are you truly visiting this site on a regular basis, if so then you will definitely get pleasant
    know-how.

  5. Very informative read. The breakdown helped me a lot.馃憤

  6. toto dice:

    An impressive share! I have just forwarded this onto a coworker
    who had been doing a little homework on this. And he actually ordered me dinner simply because I stumbled upon it for him…
    lol. So allow me to reword this…. Thank YOU for the meal!!

    But yeah, thanx for spending the time to talk about this subject
    here on your website.

  7. Michaelroyar dice:

    https://umassindiapharm.xyz/# cheapest online pharmacy india

  8. DelmarerypE dice:

    https://nyupharm.com/# is canadian pharmacy legit

  9. Hi there colleagues, its impressive paragraph concerning cultureand fully explained,
    keep it up all the time.

  10. CraigWed dice:

    buy canadian drugs [url=https://nyupharm.xyz/#]canadian pharmacy online store[/url] canadian world pharmacy

  11. Harika bir yazı. Gerçekten çok bilgilendirici. Tebrikler!|
    Bu gerçekten çok ilginç. İzmir’deki taksi hizmetleri
    hakkında daha fazla bilgi almak için kesinlikle tekrar ziyaret edeceğim!|
    Yazınızı okudum ve gerçekten çok beğendim.
    İzmir’deki taksi hizmetleri ve fiyatları hakkında böyle kapsamlı bir rehber bulmak gerçekten zor.
    Harika bir yazı olmuş!|
    Gerçekten çok yararlı bir yazı olmuş. İzmir’de taksi kullanmayı düşünenler
    için mükemmel bir kaynak. Çok teşekkürler!|
    Harika bir yazı, özellikle İzmir taksi hizmetleri hakkında verdiğiniz bilgiler çok
    faydalı oldu. Harika bir iş çıkarmışsınız!|
    Çok güzel bir yazı. İzmir’deki taksi ücretleri ve
    servis hakkında böyle detaylı bilgi bulmak gerçekten çok zor.
    Tebrik ederim!|
    Çok beğendim! İzmir’deki taksi hizmetleri ile ilgili daha fazla yazı
    görmek isterim. İçerik gerçekten çok yararlı olmuş.
    Teşekkürler!|
    Çok güzel bir yazı. İzmir’deki taksi sistemine dair her
    şeyin detaylı bir şekilde anlatıldığı bu yazıyı okumanın çok faydalı olduğunu düşünüyorum.
    Harika bir yazı olmuş!|

  12. I just could not depart your website prior to suggesting
    that I extremely enjoyed the standard info a person supply
    in your visitors? Is going to be again continuously to
    check up on new posts

  13. online food dice:

    Admiring the dedication you put into your blog and detailed information you offer.
    It’s great to come across a blog every once in a while that isn’t the
    same outdated rehashed material. Wonderful read! I’ve saved your site and I’m
    including your RSS feeds to my Google account.

  14. JosephDug dice:

    Umass India Pharm: Online medicine order – Umass India Pharm

  15. JosephDug dice:

    cheapest pharmacy canada: Nyu Pharm – certified canadian international pharmacy

  16. I don’t know whether it’s just me or if perhaps everybody else encountering problems with your website.
    It appears like some of the written text within your posts
    are running off the screen. Can somebody else please provide feedback and let me know if this
    is happening to them as well? This could be a issue with my browser because I’ve
    had this happen previously. Thank you

  17. click dice:

    Very shortly this website will be famous amid all blogging and site-building users, due
    to it’s fastidious posts

  18. It’s appropriate time to make some plans for the future and it is time to be happy.

    I have read this post and if I could I desire to suggest you some interesting
    things or advice. Perhaps you could write next articles referring
    to this article. I desire to read even more things about it!

  19. Sazrczx dice:

    Купить документ о получении высшего образования вы имеете возможность в нашей компании в Москве. Мы предлагаем документы об окончании любых университетов России. Гарантируем, что в случае проверки документа работодателями, подозрений не возникнет: [url=http://hedot.net/read-blog/5013_kupit-diplom-tehnikuma.html/]hedot.net/read-blog/5013_kupit-diplom-tehnikuma.html[/url]

  20. CraigWed dice:

    zithromax mexican pharmacy [url=http://unmpharm.com/#]Unm Pharm[/url] Unm Pharm

Responder a JosephDug Cancelar respuesta