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: 133,425

  1. av 在线 dice:

    I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get got an shakiness over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly very often inside case you shield this increase.

  2. Ricardoemund dice:

    Arkadaslar, Grandpashabet Casino son linki belli oldu. Adresi bulamayanlar buradan devam edebilir https://grandpashabet.in.net/#

  3. bkhsmyy dice:

    Хроническая усталость — признак чужого пути.
    https://telegra.ph/Manifestor-dizajn-cheloveka-Bodigraf-onlajn-Postroit-bodigraf-Bodigraf-onlajn-01-24

    -человек генератор кто это;
    -генератор тип личности дизайн человека;
    -генератор по дизайну человека;
    -генератор это дизайн человека;
    -дизайн человека генератор;

  4. Georgebib dice:

    Herkese merhaba, Casibom oyuncular? ad?na k?sa bir paylas?m paylas?yorum. Bildiginiz gibi Casibom giris linkini BTK engeli yuzunden tekrar tas?d?. Siteye ulas?m hatas? cekenler icin dogru yerdesiniz. Guncel Casibom guncel giris adresi su an paylas?yorum [url=https://casibom.mex.com/#]Casibom Giris[/url] Paylast?g?m baglant? ile dogrudan siteye girebilirsiniz. Ek olarak kay?t olanlara verilen freespin f?rsatlar?n? da inceleyin. Guvenilir slot keyfi surdurmek icin Casibom dogru adres. Herkese bol sans dilerim.

  5. In the lively world of Escort girls in Israel,
    Escort girls in Israel, guests can experience a plethora of choices.
    Such services offer not just companionship, but
    also excitement.

  6. AntioneEmelp dice:

    Bahis severler selam, bu popüler site üyeleri adına kısa bir duyuru yapmak istiyorum. Herkesin bildiği üzere Casibom domain adresini erişim kısıtlaması nedeniyle tekrar değiştirdi. Giriş problemi varsa link aşağıda. Güncel Casibom güncel giriş bağlantısı artık paylaşıyorum Casibom 2026 Bu link üzerinden direkt hesabınıza girebilirsiniz. Ayrıca yeni üyelere verilen hoşgeldin bonusu kampanyalarını da kaçırmayın. En iyi bahis keyfi sürdürmek için Casibom doğru adres. Tüm forum üyelerine bol kazançlar dilerim.

  7. Davidtulse dice:

    Dostlar selam, Vay Casino kullanıcıları için kısa bir bilgilendirme paylaşıyorum. Bildiğiniz gibi site giriş linkini tekrar değiştirdi. Giriş hatası varsa endişe etmeyin. Son Vaycasino giriş linki şu an aşağıdadır: https://vaycasino.us.com/# Paylaştığım bağlantı üzerinden vpn kullanmadan hesabınıza erişebilirsiniz. Güvenilir bahis deneyimi için Vaycasino doğru adres. Herkese bol şans dilerim.

  8. Davidtulse dice:

    Matbet giriş adresi lazımsa doğru yerdesiniz. Maç izlemek için: https://matbet.jp.net/# Canlı maçlar burada. Arkadaşlar, Matbet bahis yeni adresi açıklandı.

  9. кухни на заказ в спб недорого [url=https://kuhni-spb-31.ru/]kuhni-spb-31.ru[/url] .

  10. кухня на заказ спб [url=https://kuhni-spb-30.ru/]кухня на заказ спб[/url] .

  11. купить кухню [url=https://kuhni-spb-29.ru/]купить кухню[/url] .

  12. Georgebib dice:

    Herkese merhaba, bu site kullan?c?lar? icin onemli bir duyuru paylas?yorum. Malum Vaycasino giris linkini tekrar degistirdi. Giris sorunu varsa panik yapmay?n. Yeni siteye erisim adresi art?k burada: https://vaycasino.us.com/# Bu link ile dogrudan siteye girebilirsiniz. Guvenilir casino deneyimi surdurmek icin Vay Casino dogru adres. Tum forum uyelerine bol sans temenni ederim.

  13. I personally find that i’ve been using it for several months for learning crypto basics, and the clear transparency stands out.

  14. ShawnWer dice:

    Transport Polonia is the only company in Moldova that, while caring for the needs of its clients curse Cahul Polonia

  15. AntioneEmelp dice:

    Herkese selam, Casibom üyeleri adına önemli bir duyuru paylaşıyorum. Herkesin bildiği üzere Casibom domain adresini erişim kısıtlaması nedeniyle tekrar güncelledi. Giriş sorunu varsa doğru yerdesiniz. Güncel Casibom giriş linki artık aşağıdadır Tıkla Git Bu link üzerinden doğrudan siteye erişebilirsiniz. Ayrıca kayıt olanlara verilen freespin kampanyalarını da kaçırmayın. Güvenilir slot keyfi için Casibom tercih edebilirsiniz. Tüm forum üyelerine bol şans dilerim.

  16. Davidtulse dice:

    Gençler, Grandpashabet son linki belli oldu. Adresi bulamayanlar şu linkten giriş yapabilir Grandpasha Giriş

  17. Georgebib dice:

    Grandpasha guncel linki ar?yorsan?z dogru yerdesiniz. H?zl? erisim icin [url=https://grandpashabet.in.net/#]Buraya T?kla[/url] Deneme bonusu burada.

  18. Davidtulse dice:

    Arkadaşlar selam, Vaycasino oyuncuları için önemli bir duyuru yapmak istiyorum. Bildiğiniz gibi platform giriş linkini tekrar güncelledi. Giriş hatası varsa endişe etmeyin. Son Vaycasino giriş adresi artık aşağıdadır: Vay Casino Giriş Bu link ile direkt siteye erişebilirsiniz. Güvenilir bahis deneyimi için Vaycasino tercih edebilirsiniz. Herkese bol kazançlar temenni ederim.

  19. кухни на заказ в спб от производителя [url=https://kuhni-spb-30.ru/]кухни на заказ в спб от производителя[/url] .

  20. ubpqkox dice:

    Хватит предавать себя ради чужого одобрения. Отдаете всё другим, оставляя себе пустоту.
    https://telegra.ph/Manifestor-Dizajn-cheloveka-manifestor-Profil-cheloveka-ehto-Rasschitat-dizajn-cheloveka-po-date-rozhdeniya-01-24

    -тип генератор в дизайне человека;
    -тип личности генератор;
    -тип личности генератор дизайн;
    -генератор по дизайну человека;
    -дизайн человека генератор;
    -человек генератор кто это;
    -генератор тип личности дизайн человека;

  21. Hi! This is my first visit to your blog! We are a group of volunteers
    and starting a new project in a community in the same niche.
    Your blog provided us useful information to
    work on. You have done a marvellous job!

  22. toto online dice:

    Just want to say your article is as astounding.
    The clarity in your post is simply nice and i can assume you’re an expert on this subject.
    Fine with your permission let me to grab your RSS feed to
    keep updated with forthcoming post. Thanks a million and
    please carry on the gratifying work.

  23. TimothyFlout dice:

    Grandpasha giriş linki lazımsa doğru yerdesiniz. Sorunsuz erişim için Grandpashabet Mobil Yüksek oranlar bu sitede.

Responder a Cazrjpy Cancelar respuesta