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: 87,312

  1. заказать курсовой проект [url=kupit-kursovuyu-9.ru]заказать курсовой проект[/url] .

  2. chicken road играть [url=https://kurica2.ru/]https://kurica2.ru/[/url] .

  3. 海外 コスプレ えろSabihin po ninyo sa alférez,na binigyan cami ng capahintulutan ngAlcalde Mayor,

  4. где можно заказать курсовую работу [url=http://kupit-kursovuyu-2.ru]где можно заказать курсовую работу[/url] .

  5. I visited various blogs but the audio feature for audio songs present at this web site is
    really excellent.

  6. Causap ni Ibarra ang Alcalde,na canyangtotoong naguing caibigan,エロ ランジェリー

  7. Attractive portion of content. I simply stumbled
    upon your weblog and in accession capital to claim that I acquire actually
    loved account your weblog posts. Any way I will
    be subscribing to your augment or even I fulfillment
    you get right of entry to consistently fast.

  8. Antoniopag dice:

    Вывод из запоя в Рязани является востребованной медицинской услугой, направленной на стабилизацию состояния пациента после длительного употребления алкоголя. Специалисты применяют современные методы детоксикации, позволяющие быстро и безопасно восстановить жизненно важные функции организма, снизить проявления абстинентного синдрома и предотвратить осложнения. Процесс лечения осуществляется в клинических условиях под постоянным наблюдением врачей.
    Разобраться лучше – http://vyvod-iz-zapoya-ryazan14.ru

  9. RichardDycle dice:

    canadian pharmacy 24h com safe https://uvapharm.xyz/# Uva Pharm

  10. I like it when people come together and share ideas.
    Great blog, continue the good work!

  11. melbet_nsMr dice:

    recenzii melbet Moldova [url=http://melbet5014.ru/]http://melbet5014.ru/[/url]

  12. RichardDycle dice:

    legitimate canadian pharmacy https://isoindiapharm.com/# online shopping pharmacy india

  13. melbet_cqMr dice:

    melbet suport Moldova [url=melbet5014.ru]melbet5014.ru[/url]

  14. melbet_pdMr dice:

    melbet cabinet personal [url=http://melbet5014.ru]melbet cabinet personal[/url]

  15. написать курсовую на заказ [url=http://www.kupit-kursovuyu-2.ru]http://www.kupit-kursovuyu-2.ru[/url] .

  16. and (in Spanish) Varones.But he that would know more particularly the originall of Titles ofHonour,オナドール

  17. It’s an remarkable piece of writing designed for all the online people; they will take benefit from it I am sure.

  18. オナドールis the naturall Seedof which every one in himself calleth Religion,and in them thatworship,

  19. RichardDycle dice:

    my canadian pharmacy review http://mhfapharm.com/# reddit canadian pharmacy

  20. セクシー えろOn coming backa few days afterwards (for I did not consider my banishment perpetual),I found they had christened him “Heathcliff”: it was the name of a sonwho died in childhood,

  21. Do you have a spam problem on this blog; I also am a blogger, and I was wondering your situation;
    we have developed some nice methods and we are looking to exchange techniques with other folks, be sure to shoot me an e-mail if interested.

  22. オナドールthe old pawnbroker,in case hemight want to pawn anything.

  23. melbet_tgMr dice:

    melbet apk download [url=melbet5014.ru]melbet5014.ru[/url]

  24. Foresttat dice:

    pharmacy com canada [url=https://mhfapharm.xyz/#]MHFA Pharm[/url] MHFA Pharm

  25. koitoto dice:

    Hi there, all is going nicely here and ofcourse every one is sharing information, that’s truly fine, keep up writing.

  26. オナドールthan is ordinarilyseen in others,is that which men call MADNESSE.

  27. курсовая заказать [url=https://www.kupit-kursovuyu-4.ru]курсовая заказать[/url] .

  28. покупка курсовой [url=https://kupit-kursovuyu-3.ru/]https://kupit-kursovuyu-3.ru/[/url] .

  29. chicken road мелбет онлайн [url=www.kurica2.ru/]www.kurica2.ru/[/url] .

  30. vip 52 dice:

    May I simply just say what a comfort to uncover
    someone that genuinely knows what they are discussing on the internet.

    You certainly know how to bring a problem to light and make it important.
    More and more people should check this out and understand this side of your story.
    I can’t believe you’re not more popular since you certainly possess the gift.

  31. Names: andthence it seems to proceed,えろ 人形that they extended the word Ratio,

  32. купить курсовую работу [url=kupit-kursovuyu-6.ru]kupit-kursovuyu-6.ru[/url] .

  33. I think the admin of this web site is actually working hard in favor of his
    web page, for the reason that here every information is quality based information.

  34. she gracefully moved away,turning and glancing at herhusband.セックス ロボット

  35. melbet_pfMr dice:

    melbet bonus fără depunere [url=https://melbet5014.ru/]melbet bonus fără depunere[/url]

  36. Foresttat dice:

    MhfaPharm [url=http://mhfapharm.com/#]MHFA Pharm[/url] northwest pharmacy canada

Responder a survival island evo 2 android cheats Cancelar respuesta