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: 126,663

  1. 1win_iipl dice:

    1win şifrə unutmuşam [url=www.1win5761.help]www.1win5761.help[/url]

  2. When I originally left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I receive 4 emails with the exact same comment. Is there a means you are able to remove me from that service? Appreciate it!

  3. mozzart dice:

    When I initially left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the same comment. Is there a way you can remove me from that service? Thanks!

  4. After I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I receive four emails with the same comment. Perhaps there is an easy method you can remove me from that service? Thank you!

  5. 真实的人类第三季高清完整官方版,海外华人可免费观看最新热播剧集。

  6. My partner and I stumbled over here coming from a different web page and thought I
    may as well check things out. I like what I see so now
    i am following you. Look forward to checking out your web
    page again.

  7. Spravkioio dice:

    Официально и без вашего присутствия получить санитарную книжку в двух столицах предлагает сайт [url=https://medcenterpenza.ru/]https://medcenterpenza.ru/[/url]. Медицинский центр оформит книжку за 2 часа по цене от 2000 рублей с курьерской доставкой. https://medcenterpenza.ru/ Чтобы получить достаточно оставить онлайн-заявку, а готовая книжка приедет с курьером в оговоренные сроки.

  8. New xxx sites provide cutting-edge content for mature audiences.

    Choose reliable platforms for safe viewing.

    Here is my page :: online viagra pharmacy

  9. “either youwill not reach your regiment before peace is concluded,or you willshare defeat and disgrace with Kutúzov,ラブドール 最新

  10. 1win_wbpl dice:

    1win bonus kodu [url=https://1win5761.help/]https://1win5761.help/[/url]

  11. otekjfafk dice:

    Het loont om de best betaalde versie van Sugar Rush te spelen, want het verschil tussen de laagst- en best betalende versies is maar liefst 2,00% en dat voel je in je portemonnee. © 2023 QubicGames S.A. © 2018 Voodoo Meestal zijn sequels niet heel geslaagd, maar Sugar Rush 1000 is een positieve uitzondering. We durven zelf te stellen dat het van een nog hoger niveau dan het Sugar Rush slot is. Vooral het winstpotentieel heeft een enorme boost gekregen. In deze met suiker besprenkelde gokkast kan je met stevige multipliers tot 25.000x de inzet winnen. Dat is vijf keer zoeter dan in de originele monsterhit van Pragmatic Play. Snoepjes en zoete lekkernijen zijn de drijvende kracht achter uw spelsessies in de Sugar Rush online slot game. Website is niet geschikt voor minderjarigen. Heb je hulp nodig in verband met een gokprobleem? Bel dan met 0900 217 77 21 of kijk op loketkansspel.nl. Stop op tijd.
    https://beda88.com/big-bass-bonanza-review-spannende-visavonturen-voor-nederlandse-spelers/
    Meer genieten van new online slots? Haal met deze tips meer uit je sessie op de gokkast:  Dit is slechts een demo en het is gratis om met deze gokkast op deze site te spelen. Er wordt geen echt geld gebruikt. Deze website wordt beheerd door Antwerp Gaming Club N.V. met maatschappelijke zetel te 1853 Grimbergen, Romeinsesteenweg 592.Het officiële nummer van de vergunning is B+5652. Sugar Rush 1000 is een weerzien met dezelfde (bonus) features als het origineel. Ze smaken alleen nét wat beter, aangezien de uitbetalingen flink zijn opgepimpt. We lopen alle speciale features in dit deel van de Sugar Rush 1000 slot review even kort met je door: Sugar Rush door Pragmatic Play Het bonusspel van Sugar Rush bestaat uit twee opwindende functies: de multiplier spots feature en de free spins feature. De Multiplier Spots feature voegt vermenigvuldigers toe aan posities op het grid, terwijl de Free Spins feature spelers beloont met gratis spins en groeiende vermenigvuldigers voor potentieel lucratieve overwinningen.

  12. You’re so awesome! I don’t believe I’ve read through anything like this before.
    So nice to find another person with a few genuine
    thoughts on this issue. Really.. thank you for starting this up.
    This site is one thing that is required on the internet, someone with some originality!

    Also visit my blog – buy xanax without prescrition

  13. When I initially left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I recieve four emails with the same comment. There has to be a means you are able to remove me from that service? Thank you!

  14. BUY VIAGRA dice:

    Ищите откровенные видео, исследуя
    надежные платформы в Интернете.
    Изучите надежные порнохабы для приватного просмотра.

    Feel free to surf to my web-site: BUY VIAGRA

  15. 塔尔萨之王第二季高清完整官方版,海外华人可免费观看最新热播剧集。

  16. Thi is a great article no doubt about it, i just started following you and i enjoy reading this piece. Do you post often ? we have similar post on the german best freelancer platform called https://webdesignfreelancerdeutschland.de/ you can check it out if you want. Thank you

  17. woo casino dice:

    After I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I receive 4 emails with the exact same comment. There has to be a means you are able to remove me from that service? Kudos!

  18. bongo dice:

    When I initially commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I receive four emails with the same comment. There has to be an easy method you can remove me from that service? Many thanks!

Responder a Free Platform Cancelar respuesta