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: 111,783

  1. RubenAneby dice:

    Pope Leo XIV celebrated the first Christmas since his election by denouncing the suffering of people of Gaza – taking shelter in tents from the “rain, wind and cold” – and by calling for the guns to fall silent in Ukraine.
    [url=https://mellstroy.social]мелстрой казино[/url]
    On Christmas Day, the first US-born pope, offered the traditional “Urbi et Orbi” blessing (“To the City and to the World”) from the balcony of St Peter’s, surveying a world speckled with conflicts from Yemen to Myanmar, and calling for compassion towards those who have fled their homelands to seek a future in Europe and America.
    [url=https://mullstroy.com]мелстрой казино ссылка[/url]
    Leo, who was elected on May 8, said Thursday that Jesus Christ is “our peace” because he “shows us the way to overcome conflicts, whether interpersonal or international. With his grace, we can and must each day our part to reject hatred, violence and opposition, and to practice dialogue, peace and reconciliation.”
    [url=https://mellstream.com]mellstroy[/url]
    The pontiff began by asking for “justice, peace and stability” for Lebanon, the Palestinian territories, Israel and Syria. Later, he said that, by becoming man, “Jesus took upon himself our fragility,” allowing him to identify “with those who have nothing left and have lost everything, like the inhabitants of Gaza.”

    Leo celebrates Christmas Holy Mass at the Vatican.
    Leo celebrates Christmas Holy Mass at the Vatican. Yara Nardi/Reuters
    Leo holds an incent burner at St Peter’s Basilica.
    Leo holds an incent burner at St Peter’s Basilica. Tiziana Fabi/AFP/Getty Images
    The pope’s first Christmas since his election took place in wet and cold conditions, but that failed to deter large crowds from coming out to hear his message.

    Earlier during Mass, he asked how, at Christmas, “can we not think of the tents in Gaza, exposed for weeks to rain, wind and cold.” With more than 400,000 homes destroyed during Israel’s war against Hamas, Gazans are being forced to choose this winter between living in tents exposed to the elements or living inside buildings that could collapse any minute.

    “Fragile is the flesh of defenseless populations, tried by so many wars, ongoing or concluded, leaving behind rubble and open wounds,” Leo said. He quoted an Israeli poet, Yehuda Amichai, who called for peace to blossom “like wildflowers.”

    Related article
    The acting Latin Patriarch of Jerusalem Pierbattista Pizzaballa attends a morning Mass at Saint Catherine’s Church, in the Church of the Nativity, in Bethlehem, in the Israeli-occupied West Bank December 25, 2025. REUTERS/Mussa Qawasma
    Christmas celebrated once again in Bethlehem but West Bank suffering persists

    Later during his Christmas message, he called for compassion towards those “who are fleeing their homeland to seek a future elsewhere, like the many refugees and migrants who cross the Mediterranean or traverse the American continent.” He offered Christmas greetings in different languages including Italian, English, Arabic, Chinese, Polish.

    Since his election, Leo has highlighted the plight of those suffering of those in Gaza, and has been outspoken by calling for the better treatment of migrants. In his first major interview in September, the American pope voiced concern over “some things” happening in the country of his birth, highlighting the significance of a letter his predecessor, Pope Francis, had sent to US bishops earlier this year, rebuking the administration’s deportation plans.

    mellstroy
    https://mellstroy5.com

  2. DelmarerypE dice:

    http://nyupharm.com/# recommended canadian pharmacies

  3. bandar toto dice:

    I visited multiple web pages however the audio feature for audio songs present at this web
    site is truly wonderful.

  4. I’ve been using it for over two years for staking, and the intuitive UI stands out.

  5. гидроизоляция цена работы за м2 [url=https://gidroizolyacziya-czena4.ru/]gidroizolyacziya-czena4.ru[/url] .

  6. JosephDug dice:

    canadian pharmacy no rx needed: the canadian drugstore – canadapharmacyonline legit

  7. CarlosRepay dice:

    Forex Trading
    [url=https://forexdailyreport.org/forex-trading-stategies/]forex trading strategies[/url]
    Foreign exchange market (forex or FX) is the largest financial market globally where currencies are traded. Forex traders aim to profit from fluctuations in currency values by buying one currency while simultaneously selling another. This dynamic marketplace operates round-the-clock across various time zones, providing ample opportunities for both short-term speculators and long-term investors.

    Currency Trading
    [url=https://forexdailyreport.org/blog/]forex blog[/url]
    Currency trading involves exchanging one country’s currency for another with the goal of profiting from changes in their relative values. Factors such as interest rates, economic indicators, geopolitical events, and central bank policies influence these movements. Understanding how different factors impact specific pairs can help traders make informed decisions when entering positions on major currency pairs like EUR/USD, USD/JPY, GBP/USD, etc.

    Forex Trading Strategies
    [url=https://forexdailyreport.org/daily-currency-analysis/]currency trading[/url]
    Effective forex trading requires well-defined strategies tailored to individual risk tolerance levels and investment objectives. Common approaches include trend following, scalping, day trading, swing trading, carry trades, news-based strategies, technical analysis using charts & patterns, fundamental analysis focusing on macroeconomic data releases, algorithmic/systematic methods employing automated systems powered by advanced algorithms.

    Forex Trading Tools
    [img=100×50]https://forexdailyreport.org/wp-content/uploads/2025/12/The-Ultimate-Forex-Broker-Vantage-1024×488.jpg[/img]
    To enhance profitability potential within this competitive landscape, numerous specialized tools have been developed over recent years including real-time charting platforms offering multiple timeframes along with customizable indicators; expert advisors performing predefined tasks automatically based upon pre-programmed rules; economic calendars highlighting key upcoming announcements affecting markets worldwide; signal providers delivering buy/sell alerts via email/text messages/SMS notifications; virtual private servers ensuring continuous connectivity even during power outages/internet disruptions; mobile apps enabling seamless access anytime anywhere regardless of location constraints.
    forex blog
    https://forexdailyreport.org/

  8. I’m impressed by the trustworthy service. I’ll definitely continue using it. Definitely recommend to anyone in crypto.

  9. JosephDug dice:

    canada drugs reviews: Nyu Pharm – online pharmacy canada

  10. CraigWed dice:

    buy prescription drugs from canada cheap [url=http://nyupharm.com/#]Nyu Pharm[/url] canadian pharmacy phone number

  11. гидроизоляция подвала цена за м2 [url=https://gidroizolyacziya-czena5.ru/]гидроизоляция подвала цена за м2[/url] .

  12. Michaelroyar dice:

    http://unmpharm.com/# prescription drugs mexico pharmacy

  13. I value the wide token selection and easy onboarding. This site is reliable.

  14. JosephDug dice:

    buy medicines online in india: top online pharmacy india – indianpharmacy com

  15. JosephDug dice:

    buy prescription drugs from india: world pharmacy india – top 10 online pharmacy in india

  16. DelmarerypE dice:

    http://nyupharm.com/# canadian pharmacy online

  17. усиление проема углеволокном [url=https://usilenie-proemov6.ru/]усиление проема углеволокном[/url] .

  18. m98bet dice:

    I seriously love your site.. Great colors & theme.
    Did you create this site yourself? Please reply back as I’m planning to create
    my own personal site and would love to find out where you got this from or exactly what
    the theme is named. Many thanks!

  19. CraigWed dice:

    indian pharmacy paypal [url=https://umassindiapharm.xyz/#]Umass India Pharm[/url] Umass India Pharm

Responder a tron generator Cancelar respuesta