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: 113,629

  1. 33win68 com dice:

    This web site definitely has all of the info I wanted about this
    subject and didn’t know who to ask.

  2. RichardHex dice:

    п»їActually, I found an informative page regarding safe pharmacy shipping. The site discusses FDA equivalents for ED medication. If you are looking for cheaper alternatives, take a look: п»ї[url=https://polkcity.us.com/#]Upstate Medical[/url]. Might be useful.

  3. 1win официальный сайт, 1win-nhk.top предлагает игрокам уникальные возможности для ставок
    и игр.

    My blog post: https://1win-pnh.cam/

  4. I’ve been active for a month, mostly for using the API, and it’s always fast transactions. The dashboard gives a complete view of my holdings.

  5. This platform exceeded my expectations with useful analytics and intuitive UI.

  6. Hey there this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you
    have to manually code with HTML. I’m starting a blog soon but have no coding expertise so
    I wanted to get advice from someone with experience.

    Any help would be enormously appreciated!

  7. Dennisburry dice:

    [url=https://sazhaem-sad-i-ogorod.blogspot.com/2025/12/blog-post_74.html]Посадочный календарь[/url]

  8. Ralphkic dice:

    п»їTo be honest, I discovered a great page about generic pills from India. It details the manufacturing standards on prescriptions. In case you need factory prices, read this: п»ї[url=https://kisawyer.us.com/#]reputable indian pharmacies[/url]. Might be useful.

  9. RichardHex dice:

    Just wanted to share, an important article on cross-border shipping rules. The author describes quality control for ED meds. You can read it here: п»ї[url=https://polkcity.us.com/#]polkcity.us.com[/url].

  10. LloydRop dice:

    I was wondering about ordering meds from Mexico. I saw a verified blog that reviews trusted vendors: п»їorder antibiotics from mexico. Check it out.

  11. Fırat Engin bahis siteleri, Casino Siteleri Nargül Engin, Slot Siteleri Hüseyin Engin,
    Deneme Bonusu Veren Siteler Ahmet Engin, Mehdi
    Deneme Bonusu, Mehdi Deneme bonusu veren siteler

  12. These changes can result in vaginal dryness,burning,エロ 人形

  13. paraswap bsc dice:

    Wow! This is a cool platform. They really do have the easy onboarding. Definitely recommend to anyone in crypto.

  14. hello!,I really like your writing so so much! proportion we
    be in contact extra about your post on AOL? I require an expert in this house to unravel
    my problem. May be that’s you! Having a look forward
    to peer you.

  15. I trust this platform — withdrawals are easy onboarding and reliable. I moved funds across chains without a problem.

  16. Charleswef dice:

    Apartment Renovation Refurbishment Guide

    Apartment renovation remodel is a detailed process that requires careful planning, effective execution, and attention to detail. Whether you are undertaking a full makeover or a basic update, understanding the key steps and concepts can help you achieve the best results.

    Planning and Preparation Stage

    The primary phase in apartment renovation is planning. This step involves evaluating the current condition of the apartment and selecting what changes you want to make. You should take into account the layout, the design, and the budget available for the project.

    Key elements to plan include:

    – Construction changes such as wall removal or installation
    – Lighting system upgrades
    – Pipe repairs or replacements [url=https://www.nyderlandai.eu/forumas/viewtopic.php?t=21143]Buto remontas[/url]
    – Selection of floor covers like wood, tile, or carpet
    – Choosing decor and finishings

    Execution and Work Stage

    Once planning is complete, the implementation of the renovation begins. This typically involves several specialists such as contractors, wiremen, and plumbers. Coordination between these groups is crucial to ensure a smooth workflow.

    Important tasks during this stage include:

    – Demolition of old components
    – Installation of new walls, floors, and ceilings
    – Electrical wiring and connection upgrades
    – Plumbing system installation or repair
    – Painting and surface treatment

    Finishing Touches and Final Details

    The final phase focuses on the completion of the renovation. This includes installing fixtures, decorating the space, and final clearing. Attention to these fine details can transform the atmosphere and functionality of your apartment.

    Tips for Successful Apartment Renovation

    – Always set a feasible budget and timeline
    – Communicate clearly with your specialists
    – Choose quality materials and tools
    – Be prepared for unexpected issues or delays
    – Focus on aspects that boost appeal such as energy efficiency and modern design

    Apartment renovation refurbishment is an investment that can significantly enhance your living environment. By following a well-structured plan and paying attention to the aspects, you can create a pleasant and attractive space tailored to your needs.

Responder a RichardHex Cancelar respuesta