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: 39,518

  1. Bk8 dice:

    Very interesting and easy to follow.

  2. Diplomi_cnma dice:

    диплом купить реестр [url=https://frei-diplom3.ru]диплом купить реестр[/url] .

  3. Diplomi_hzsi dice:

    купить диплом о высшем образовании с занесением в реестр цена [url=frei-diplom4.ru]купить диплом о высшем образовании с занесением в реестр цена[/url] .

  4. MichealFargy dice:

    [url=https://clearmedshub.shop/#]ClearMedsHub[/url] Clear Meds Hub

  5. s penetration he understood all that was passing in smind.“If a tenth part of his detachment returns I shall thank God,ラブドール えろ

  6. Bk8 dice:

    I never thought of it this way, thanks for sharing.

  7. Dennismam dice:

    VitalEdge Pharma: VitalEdge Pharma – VitalEdge Pharma

  8. Diplomi_mopn dice:

    как купить диплом с занесением в реестр [url=https://frei-diplom5.ru/]как купить диплом с занесением в реестр[/url] .

  9. Derekmom dice:

    online erectile dysfunction prescription: VitalEdge Pharma – VitalEdge Pharma

  10. Good post. I learn something totally new and challenging
    on sites I stumbleupon every day. It will always be exciting to read through content from
    other authors and use something from their web sites.

  11. topic dice:

    If you’re searching for a trustworthy and powerful financial
    service that handles not only cryptocurrency transactions like buying
    Bitcoin but also supports a wide range of fiat operations, then you should definitely check out this forum
    topic where users share their feedback about a truly all-in-one crypto-financial platform.

    The recommendation shared by users in the discussion made it clear that
    this platform is more than just a simple exchange – it’s a full-fledged financial ecosystem for both individuals and companies.

    Whether you’re running a startup or managing finances for a multinational corporation, the
    features highlighted in this discussion could be a game-changer – multi-user accounts,
    compliance tools, fiat gateways, and crypto custody all in one.

    I’ve rarely come across such a balanced opinion that addresses both crypto-savvy users and traditional finance professionals, especially in the context of business-scale
    needs.
    It’s a long read, but this forum topic offers some of the most detailed opinions on using crypto platforms for corporate and fiat operations alike.
    Definitely worth digging into this website.

  12. raja5d dice:

    My relatives all the time say that I am killing my time here at net, however I know I am getting knowledge all the time by reading thes good content.

  13. togelup dice:

    I appreciate the effort you put into writing this.

  14. Diplomi_puMt dice:

    купить диплом в кургане [url=rudik-diplom8.ru]купить диплом в кургане[/url] .

  15. Diplomi_xgka dice:

    купить диплом продавца [url=http://rudik-diplom1.ru/]купить диплом продавца[/url] .

  16. Diplomi_fgSn dice:

    можно купить диплом медсестры [url=https://frei-diplom13.ru/]можно купить диплом медсестры[/url] .

  17. Bk8 dice:

    I never thought of it this way, thanks for sharing.

  18. 13 WIN dice:

    Hello There. I found your blog the usage of msn. This is a very neatly written article.
    I’ll be sure to bookmark it and return to learn more of your useful info.
    Thank you for the post. I will certainly return.

  19. when the grandfathers of some vokewalked a-voot.ドール エロI warrant she fancies she did a mighty matter,

  20. danatoto dice:

    This article cleared up my doubts completely.

  21. Derekmom dice:

    EverTrustMeds: EverTrustMeds – Tadalafil price

  22. Vernoncrava dice:

    Как правильно выбрать казино для онлайн развлечений

    Выбор надежного онлайн-казино важен для безопасности личных данных, сохранности средств и честности игрового процесса. Ниже — структурированное руководство с ключевыми критериями и практическими шагами.

    Лицензия и репутация
    Проверьте наличие действующей разрешения от авторитетного регулятора: Великобритания или другие признанные юрисдикции. Узнайте отзывы пользователей на независимых ресурсах и форуме пользователей. Обратите внимание на историю компании и сроки работы на рынке.

    Безопасность и защита данных
    Убедитесь, что сайт использует шифрование TLS — адрес должен начинаться с https://. Проверьте политику конфиденциальности и соответствие требованиям по защите персональных данных.

    Честность игр и провайдеры софта
    Надежные казино сотрудничают с известными поставщиками игрового ПО: Microgaming и другие. Ищите информацию о независимом аудите генератора случайных чисел (RNG) от организаций типа eCOGRA.

    Ассортимент игр и качество
    Оцените выбор слотов, столов червы, рулетки и игр с живыми дилерами. Посмотрите наличие фильтров и демо-режима для тестирования игр без денег.

    Бонусы и условия
    Проанализируйте бонусные предложения: приветственные бонусы, акции и программы лояльности. Обязательно читайте условия (wagering requirements, максимальные ставки и ограничения по вкладам).

    Платежи и вывод средств
    Проверьте доступные методы пополнения и вывода: банковские карты. Узнайте о лимитах, сроках обработки и комиссиях. Прозрачность финансовых операций — признак респектабельного оператора.

    Поддержка клиентов
    Тестируйте службу поддержки: наличие чата, электронной почты, телефона; часов работы; скорость ответа. Поддержка на вашем родном языке — большой плюс [url=https://poker-dom-game.icu]сайт poker dom[/url]

    Ответственная игра
    Проверьте наличие инструментов для ответственной игры: лимитов, самоисключения и ссылки на организацию помощи при игровой зависимости. Убедитесь, что оператор предлагает справедливые меры по защите уязвимых игроков.

    Мобильная совместимость и удобство интерфейса
    Оцените мобильную версию сайта или приложения: скорость загрузки, удобство навигации, функционал. Совместимость с популярными браузерами и отзывчивый дизайн важны для комфортной игры.

    Практические шаги при выборе
    1. Составьте список из 3–5 кандидатов.
    2. Сравните лицензии, отзывы и условия выплат.
    3. Протестируйте демо-режим и службу поддержки.
    4. Начните с небольшой суммы и проверьте процесс вывода.
    5. Мониторьте счет и соблюдайте правила ответственной игры.

    Заключение
    Выбор безопасного и честного веб-казино требует проверки лицензии, репутации, безопасности, качества игр и условий выплат. Подходите к выбору осознанно, используйте демо-режимы и контролируйте свои расходы.

    Если нужно, могу подготовить шаблон проверки казино в виде чек-листа или сравнить конкретные площадки по указанным критериям.

  23. Diplomi_seOr dice:

    можно купить диплом техникума [url=http://www.educ-ua7.ru]http://www.educ-ua7.ru[/url] .

  24. comes with a unique approach towards weight loss.

  25. togelup dice:

    Thanks for sharing such valuable insights.

  26. ドール エロMolly,having dressed herself out in this sack,

  27. Jesse Wyly dice:

    comes with a unique approach towards weight loss.

  28. comes with a unique approach towards weight loss.

  29. fluffycactus3mug dice:

    Je suis fou de Julius Casino, ca degage une ambiance de jeu imperiale. Les choix de jeux au casino sont riches et glorieux, offrant des sessions de casino en direct qui en imposent. Le support du casino est disponible 24/7, proposant des solutions claires et immediates. Les transactions du casino sont simples comme un decret, parfois des recompenses de casino supplementaires feraient rugir de plaisir. Au final, Julius Casino est un colisee pour les fans de casino pour les joueurs qui aiment parier avec panache au casino ! En plus la navigation du casino est intuitive comme une strategie romaine, ce qui rend chaque session de casino encore plus triomphante.
    julius casino.|

  30. Merlin Takai dice:

    comes with a unique approach towards weight loss.

  31. krummeltiger4mug dice:

    Ich liebe den Wahnsinn von JackpotPiraten Casino, es ist ein Online-Casino, das wie eine Welle kracht. Es gibt eine Flut an packenden Casino-Titeln, mit modernen Casino-Slots, die einen mitrei?en. Das Casino-Team bietet eine Unterstutzung, die wie Gold glanzt, sorgt fur sofortigen Casino-Support, der beeindruckt. Der Casino-Prozess ist klar und ohne Wellengang, dennoch wurde ich mir mehr Casino-Promos wunschen, die funkeln. Am Ende ist JackpotPiraten Casino ein Casino mit einem Spielspa?, der die Planken erzittern lasst fur Fans von Online-Casinos! Zusatzlich die Casino-Plattform hat einen Look, der wie ein Schatz funkelt, Lust macht, immer wieder ins Casino zuruckzukehren.
    jackpotpiraten automatenspielanbieter|

  32. lucky pari ставки на хоккей [url=http://luckypari100.ru]lucky pari ставки на хоккей[/url]

  33. jonitogel dice:

    Clear and precise, well written.

  34. Latina Jump dice:

    comes with a unique approach towards weight loss.

  35. fluffycrab3mug dice:

    Estou completamente enlouquecido por LeaoWin Casino, oferece uma aventura de cassino que e uma fera. As opcoes de jogo no cassino sao ricas e selvagens, com slots de cassino unicos e eletrizantes. O servico do cassino e confiavel e brabo, dando solucoes na hora e com precisao. Os saques no cassino sao velozes como um predador, mas mais giros gratis no cassino seria uma loucura. Na real, LeaoWin Casino garante uma diversao de cassino que e selvagem para os aventureiros do cassino! De bonus a interface do cassino e fluida e cheia de energia selvagem, aumenta a imersao no cassino a mil.
    casino san leaowin02|

  36. Visit dice:

    Wow, amazing blog format! How lengthy have you been blogging for?

    you make blogging look easy. The entire glance of your web site is fantastic, let alone the content!

Responder a raja5d Cancelar respuesta