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: 112,552

  1. This web site certainly has all of the information and facts I wanted
    concerning this subject and didn’t know who to ask.

  2. Thanks for sharing your thoughts about spiritual warfare.
    Regards

  3. Hey there! I’ve been following your site for a while now and finally got the courage to go ahead
    and give you a shout out from Austin Tx! Just wanted to mention keep up the excellent job!

  4. 1win-xjn.top dice:

    1win официальный сайт, 1win предлагает широкий выбор услуг для поклонников ставок.

    Feel free to visit my page :: 1win-xjn.top

  5. Michaelroyar dice:

    https://unmpharm.xyz/# safe place to buy semaglutide online mexico

  6. bk888 dice:

    I was recommended this web site by my cousin. I’m not sure whether
    this post is written by him as no one else know such detailed about my trouble.
    You are incredible! Thanks!

  7. Cazrmur dice:

    Получить диплом любого ВУЗа можем помочь. Купить диплом бакалавра в Нижнем Новгороде – [url=http://diplomybox.com/kupit-diplom-bakalavra-v-nizhnem-novgorode/]diplomybox.com/kupit-diplom-bakalavra-v-nizhnem-novgorode[/url]

  8. CraigWed dice:

    india online pharmacy [url=https://umassindiapharm.xyz/#]buy medicines online in india[/url] Umass India Pharm

  9. Michaelroyar dice:

    http://umassindiapharm.com/# online shopping pharmacy india

  10. I’m amazed, I have to admit. Rarely do I encounter a blog
    that’s equally educative and amusing, and let me tell you, you’ve hit the nail on the head.
    The issue is something which not enough men and women are speaking intelligently
    about. I’m very happy I found this during my
    hunt for something relating to this.

  11. JosephDug dice:

    Umass India Pharm: pharmacy website india – indian pharmacy online

  12. Appreciating the persistence you put into your website and detailed information you present.
    It’s great to come across a blog every once in a while that isn’t the same outdated rehashed material.
    Wonderful read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  13. наркологический анонимный центр [url=https://narkologicheskaya-klinika-48.ru/]narkologicheskaya-klinika-48.ru[/url] .

  14. I visit each day a few websites and blogs to read articles, except
    this website presents quality based writing.

  15. Hello, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam
    responses? If so how do you protect against it,
    any plugin or anything you can recommend? I get so much lately it’s driving me mad so any help is very much appreciated.

  16. CraigWed dice:

    reputable indian pharmacies [url=http://umassindiapharm.com/#]Umass India Pharm[/url] best online pharmacy india

  17. гидроизоляция подвала утепление [url=https://gidroizolyacziya-podvala-samara2.ru/]gidroizolyacziya-podvala-samara2.ru[/url] .

  18. ночной нарколог на дом [url=https://narkolog-na-dom-4.ru/]narkolog-na-dom-4.ru[/url] .

  19. togel88 dice:

    What’s up i am kavin, its my first time to commenting anyplace, when i read this article i thought
    i could also make comment due to this sensible paragraph.

  20. CraigWed dice:

    Umass India Pharm [url=https://umassindiapharm.com/#]indianpharmacy com[/url] indian pharmacy paypal

  21. DelmarerypE dice:

    https://unmpharm.xyz/# mexico drug stores pharmacies

  22. Withdrawal of fiat funds from the best US crypto casino is
    only available to users who have successfully completed the verification process.

  23. инъекционная гидроизоляция частный дом [url=https://inekczionnaya-gidroizolyacziya5.ru/]inekczionnaya-gidroizolyacziya5.ru[/url] .

  24. Hello there! This is kind of off topic but I need some advice
    from an established blog. Is it difficult 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

  25. 10bet_rnPn dice:

    Try your luck and win big prizes with [url=https://10bet-online.com/]10bet[/url], leader among online casinos.
    Assistance is offered through various channels including live chat, email, and telephone.

  26. 10bet_ijPn dice:

    Try your luck and win big prizes with [url=https://10bet-online.com/]10bet casino[/url], leader among online casinos.
    Such variety makes 10bet an all-in-one platform catering to different gambling preferences.

  27. 10bet_ycPn dice:

    Try your luck and win big prizes with [url=https://10bet-online.com/]10 win casino[/url], leader among online casinos.
    With proper licensing and regulatory oversight, 10bet guarantees player security and fair play.

  28. I’m gone to say to my little brother, that he should also go to see
    this weblog on regular basis to get updated from most recent information.

  29. 1win официальный сайт, 1win зеркало предлагает обширный выбор
    ставок. Каждый пользователи могут размещать свои ставки
    на разные события.

  30. JosephDug dice:

    canadianpharmacy com: Nyu Pharm – vipps canadian pharmacy

  31. An impressive share! I’ve just forwarded this onto a friend who was doing a
    little homework on this. And he actually ordered me breakfast due to the fact that I discovered it for him…
    lol. So allow me to reword this…. Thanks for the meal!!
    But yeah, thanx for spending time to discuss this matter here on your web site.

Responder a https://thomsonviewresidencescondo.com.sg/ Cancelar respuesta