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: 57,711

  1. Josephthemi dice:

    Cialis Preisvergleich Deutschland: tadalafil 20 mg preis – potenzmittel cialis

  2. sportwetten bonus ohne einzahlung

    My page buchmacher de

  3. pin up yordam markazi [url=https://www.pinup5007.ru]https://www.pinup5007.ru[/url]

  4. Elsy Mathe dice:

    financialgrowthplan.cfd – Just found this platform, looks like it could offer interesting opportunities.

  5. Nordiqo dice:

    Hi there, its fastidious piece of writing about media print,
    we all know media is a impressive source of data.

  6. pin-up [url=www.pinup5008.ru]www.pinup5008.ru[/url]

  7. cd playing clock radio [url=alarm-radio-clocks.com]alarm-radio-clocks.com[/url] .

  8. Mike Fernald dice:

    forexlearninghub.cfd – The layout is clean, content feels easy to digest for beginners.

  9. Diplomi_nlkr dice:

    купить диплом в салавате [url=www.rudik-diplom2.ru]купить диплом в салавате[/url] .

  10. pin up uz [url=https://pinup5007.ru/]https://pinup5007.ru/[/url]

  11. Josephthemi dice:

    tadalafil senza ricetta: pillole verdi – tadalafil senza ricetta

  12. classyhomegoods.bond – Found some attractive home decor items, browsing was smooth and easy.

  13. Josephthemi dice:

    farmacia online barata y fiable: tadalafilo 5 mg precio – comprar cialis

  14. pin up hisobni to‘ldirish [url=www.pinup5007.ru]www.pinup5007.ru[/url]

  15. smarttradingmentor.bond – I wish there were more video tutorials but content feels solid so far.

  16. Diplomi_znsa dice:

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

  17. Hey there! This is kind of off topic but I need some help from an established blog.
    Is it hard to set up your own blog? I’m not very techincal but I can figure things out pretty fast.
    I’m thinking about setting up my own but I’m not sure where to start.
    Do you have any points or suggestions? Many thanks

  18. Diplomi_bqEt dice:

    казань купить диплом техникума [url=www.frei-diplom11.ru/]казань купить диплом техникума[/url] .

  19. где сделать проект перепланировки квартирым [url=https://proekt-pereplanirovki-kvartiry11.ru/]https://proekt-pereplanirovki-kvartiry11.ru/[/url] .

  20. Raymondseazy dice:

    comprar cialis: Tadalafilo Express – farmacias online baratas

  21. RodolfoBew dice:

    emeryflowers – Beautiful aesthetic, every section blooms with creativity and emotion.

  22. the alarm cd [url=https://alarm-radio-clocks.com/]https://alarm-radio-clocks.com/[/url] .

  23. Raymondseazy dice:

    cialis prezzo: tadalafil senza ricetta – farmacia online

  24. Вызов нарколога на дом в владимире — это ключевая помощь для людей‚ испытывающих трудности с зависимостями. Профессиональная помощь‚ включая лечение алкоголизма и наркомании‚ предоставляется в знакомой обстановке. Ресурс vivod-iz-zapoya-vladimir025.ru предлагает профессиональные услуги нарколога в владимире‚ включая анонимное лечение и реабилитацию. Когда вы вызываете врача на дом‚ пациент получает не только медицинскую помощь при зависимости‚ но и психологическую реабилитацию. Визит нарколога на дом поможет разработать индивидуальный план лечения. Домашний визит врача обеспечивает конфиденциальность и комфорт. Важно помнить‚ что своевременное обращение за помощью может спасти жизнь. Не откладывайте вызов нарколога‚ если вы или ваши близкие нуждаются в поддержке.

  25. I’m gone to say to my little brother, that he should also visit this webpage on regular basis
    to get updated from most recent information.

  26. пин ап как вывести деньги [url=https://pinup5008.ru/]https://pinup5008.ru/[/url]

  27. alarm clocks with cd players [url=http://alarm-radio-clocks.com/]http://alarm-radio-clocks.com/[/url] .

  28. My family members always say that I am wasting my time here at web, however I know I am getting know-how everyday by reading thes good posts.

  29. I must say this article is extremely well written, insightful, and packed with valuable knowledge that shows the author’s deep expertise on the subject, and I truly appreciate the time and effort that has gone into creating such high-quality content because it is not only helpful but also inspiring for readers like me who are always looking for trustworthy resources online. Keep up the good work and write more. i am a follower. https://webdesignfreelancerfrankfurt.de/

  30. проект перепланировки квартиры цена [url=https://proekt-pereplanirovki-kvartiry11.ru/]проект перепланировки квартиры цена[/url] .

  31. Georgevot dice:

    farmacia online madrid [url=https://tadalafiloexpress.shop/#]tadalafilo sin receta[/url] tadalafilo 5 mg precio

  32. clock radio alarm clock [url=http://alarm-radio-clocks.com/]http://alarm-radio-clocks.com/[/url] .

  33. Diplomi_tdOr dice:

    купить диплом в уссурийске [url=rudik-diplom15.ru]rudik-diplom15.ru[/url] .

  34. Diplomi_dusa dice:

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

  35. futuregrowthteam.cfd – Overall a good find for anyone interested in growth and mindset-oriented content.

  36. pin up uz [url=www.pinup5007.ru]www.pinup5007.ru[/url]

  37. pin up ilova orqali tikish [url=http://pinup5008.ru]pin up ilova orqali tikish[/url]

  38. Leia Slatin dice:

    trustbridgealliance.bond – Would like to see more interactive features, but the foundation is solid.

  39. Wendie Blice dice:

    buildtogethernow.bond – I’m bookmarking this one; looks like a resource I’ll come back to.

  40. Wendi Love dice:

    dailyprofitupdate.cfd – Just found this site, looks like a potential resource for daily trading updates.

  41. Very nice post. I just stumbled upon your weblog and
    wanted to say that I’ve truly enjoyed surfing around your blog posts.

    After all I will be subscribing to your feed and I hope you write again soon!

  42. learnforexstrategy.cfd – I discovered some strategy posts here, will explore them further tonight.

  43. trustedleaderscircle.cfd – The site appears mobile-friendly and responsive which adds to its usability.

Responder a Cd Player Radio Alarm Clocks_dipa Cancelar respuesta