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: 88,127

  1. Davidvat dice:

    get propecia no prescription [url=https://bswfinasteride.xyz/#]BswFinasteride[/url] BSW Finasteride

  2. Diplomi_yvMa dice:

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

  3. 3nz9f.icu dice:

    I’ve been saying this for years! Great to see someone finally put it so clearly. https://3nz9f.icu/

  4. terrified face began to quiver,hiseyes still shifted from side to side but with a downward look not risingto Rostóv,美人 せっくす

  5. Davidvat dice:

    BswFinasteride [url=http://bswfinasteride.com/#]cost cheap propecia pill[/url] BSW Finasteride

  6. The depth of research and clarity of presentation in this post is truly exceptional.

  7. slot resmi dice:

    Hi there mates, its enormous paragraph about educationand fully explained, keep it up all the time.

  8. Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is valuable and everything.

    However think of if you added some great visuals or
    videos to give your posts more, “pop”! Your content is excellent but with images and
    videos, this blog could undeniably be one of the most beneficial in its niche.
    Good blog!

  9. Baggerman, Jessica O. СТО Citroen Київ (2024).
    “The power of animals.” 2012). “Transport structures with aerial cable cars in city parks: the current state”.

  10. This is my first time pay a visit at here and i am in fact impressed to read all at alone place.

  11. Davidvat dice:

    ivermectin for cats [url=https://pmaivermectin.xyz/#]PmaIvermectin[/url] stromectol metabolize

  12. PatrickFes dice:

    buy medicines online in india https://pmaivermectin.com/# what is the active ingredient in ivermectin

  13. Very nice post. I just stumbled upon your weblog and wished to
    say that I’ve really enjoyed surfing around your blog posts.
    After all I will be subscribing to your feed and I hope you write again very
    soon!

  14. Davidvat dice:

    PMA Ivermectin [url=https://pmaivermectin.com/#]ivermectin for tapeworms in cats[/url] PMA Ivermectin

  15. Hello! This is my first visit to your blog!
    We are a group of volunteers and starting a new initiative in a community in the same niche.

    Your blog provided us valuable information to work on. You have done a wonderful job!

  16. I’m more than happy to discover this web site.
    I want to to thank you for your time for this particularly
    fantastic read!! I definitely savored every part
    of it and i also have you bookmarked to look at new things in your site.

  17. slot toto dice:

    What’s up, its fastidious piece of writing concerning
    media print, we all be aware of media is a enormous source of facts.

  18. Понял, что движение — лучший способ снять стресс

    https://storeprofit.ru/

  19. PatrickFes dice:

    indian pharmacy https://socalabortionpill.com/# buy cytotec online fast delivery

  20. Davidvat dice:

    metformin 150 mg [url=https://uclametformin.com/#]UclaMetformin[/url] UclaMetformin

  21. It’s impressive that you are getting thoughts from this piece of writing as
    well as from our discussion made at this place.

  22. Does your blog have a contact page? I’m having trouble locating it but,
    I’d like to send you an e-mail. I’ve got some ideas for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing it grow over time.

  23. That is a really good tip particularly to those fresh to the blogosphere.
    Short but very precise info… Thank you for sharing this one.
    A must read post!

  24. The insights you’ve shared here have already had a positive impact on my work.

  25. Charlesjurse dice:

    SocalAbortionPill: SocalAbortionPill – SocalAbortionPill

  26. Juannolf dice:

    For anyone new to online betting, choosing the right platform can feel overwhelming. The most important first step is to find a site with a clean interface and clear instructions. It’s crucial not to rush into complex bets before you understand the basics.

    Specialization is key, especially when you’re just starting out. Focus on one or two leagues you know inside out on a platform like [url=https://wplaydescargar.co/]the link[/url].

    In the end, knowledge and discipline will always outperform blind luck. Thanks for reading my thoughts.

  27. Charlesjurse dice:

    buy cytotec pills: Socal Abortion Pill – Socal Abortion Pill

  28. Douglasvam dice:

    Ucla Metformin: metformin otc – metformin without prescription

  29. Douglasvam dice:

    generic propecia for sale: cost of cheap propecia online – buy propecia prices

  30. you’re in reality a just right webmaster. The web site loading
    velocity is amazing. It sort of feels that you’re doing any distinctive trick.
    Furthermore, The contents are masterwork. you have performed
    a wonderful job on this matter!

  31. Diplomi_iaEi dice:

    купить диплом легче [url=http://www.r-diploma27.ru]http://www.r-diploma27.ru[/url] .

  32. Explicit videos can be streamed on trusted platforms for privacy.
    Explore safe websites for quality viewing.

    My page; brutal porn clips

  33. Diplomi_boOa dice:

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

  34. Howdy! I know this is kinda off topic but I was wondering
    if you knew where I could find a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having trouble finding one?
    Thanks a lot!

  35. 3nz9f.icu dice:

    I’ve been looking for something like this. https://3nz9f.icu/

  36. Charlesjurse dice:

    cost generic propecia for sale: BswFinasteride – get generic propecia without rx

  37. Diplomi_avMl dice:

    купить диплом в новокузнецке [url=r-diploma7.ru]r-diploma7.ru[/url] .

  38. Diplomi_htPn dice:

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

Responder a Juannolf Cancelar respuesta