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: 114,249

  1. toto macau dice:

    Hello my friend! I want to say that this post is amazing,
    great written and come with approximately all significant infos.
    I’d like to peer extra posts like this .

  2. Ralphkic dice:

    п»їRecently, I discovered a helpful guide regarding ordering meds from India. It explains CDSCO regulations when buying antibiotics. For those interested in cheaper alternatives, go here: п»їhttps://kisawyer.us.com/# п»їlegitimate online pharmacies india. Worth a read.

  3. Hexapod dice:

    Does your site have a contact page? I’m having trouble locating it but, I’d like to send you an e-mail.

    I’ve got some creative ideas for your blog you might be interested in hearing.
    Either way, great website and I look forward to seeing it grow over time.

  4. 經絡課程 dice:

    https://je-tal-marketing-902.lon1.digitaloceanspaces.com/research/je-marketing-(287).html
    Pink anemones and blue and yellow wildflower buds accented this gorgeous black dress worn by the mother of the bride.

  5. 整骨學徒 dice:

    https://fr-box-10.syd1.digitaloceanspaces.com/research/paris-(4730).html
    This sheath dress and sequin capelet combination boasts a modest neckline and high-slit skirt making it at once sophisticated and sexy.

  6. Ralphkic dice:

    п»їLately, I discovered a useful report about buying affordable antibiotics. It details WHO-GMP protocols for ED medication. In case you need Trusted Indian sources, check this out: п»їsee more. It helped me.

  7. RichardHex dice:

    п»їLately, I found a great guide concerning safe pharmacy shipping. It covers FDA equivalents on prescriptions. In case you need reliable shipping to USA, check this out: п»їpolkcity.us.com. Might be useful.

  8. Ralphkic dice:

    п»їRecently, I found a helpful article concerning generic pills from India. The site discusses the manufacturing standards for generic meds. If anyone wants cheaper alternatives, take a look: п»їhttps://kisawyer.us.com/# mail order pharmacy india. Hope it helps.

  9. статьи про маркетинг и seo [url=https://seo-blog9.ru/]seo-blog9.ru[/url] .

  10. Ralphkic dice:

    п»їTo be honest, I found an informative page regarding cheap Indian generics. The site discusses CDSCO regulations for generic meds. If anyone wants cheaper alternatives, read this: п»ї[url=https://kisawyer.us.com/#]view[/url]. Worth a read.

  11. staking defi dice:

    I’m impressed by the responsive team. I’ll definitely continue using it. Great for cross-chain swaps with minimal slippage.

  12. RichardHex dice:

    Stop overpaying and save money on prescriptions, I recommend reading this resource. It shows prices for generics. Discounted options at this link: п»ї[url=https://polkcity.us.com/#]information[/url].

  13. 대밤 dice:

    Hello there! This post couldn’t be written any better!
    Reading this post reminds me of my previous room mate!
    He always kept chatting about this. I will forward this article to him.
    Pretty sure he will have a good read. Thank you for sharing!

  14. https://fr-kai-4.tor1.digitaloceanspaces.com/research/%EF%B8%8F-love-shot-(1826).html
    Encourage your mom to have somewhat fun when dressing for your ceremony or rehearsal dinner.

  15. Ralphkic dice:

    п»їActually, I discovered an interesting report regarding generic pills from India. It covers WHO-GMP protocols on prescriptions. If you are looking for cheaper alternatives, go here: п»їonline shopping pharmacy india. It helped me.

  16. Ralphkic dice:

    п»їActually, I discovered a great article about ordering meds from India. It covers the manufacturing standards on prescriptions. If anyone wants factory prices, visit this link: п»їhttps://kisawyer.us.com/# reputable indian online pharmacy. Might be useful.

  17. Shoshana dice:

    บทความนี้ อ่านแล้วได้ความรู้เพิ่ม ครับ
    ดิฉัน ไปเจอรายละเอียดของ ข้อมูลเพิ่มเติม
    เข้าไปดูได้ที่ Shoshana

    ลองแวะไปดู
    มีข้อมูลที่อ่านแล้วเข้าใจได้ทันที

    ขอบคุณที่แชร์ สิ่งที่มีคุณค่า นี้
    จะคอยดูว่ามีเนื้อหาใหม่ๆ
    มาเสริมอีกหรือไม่

  18. 舒壓課程 dice:

    https://fr-kai-7.blr1.digitaloceanspaces.com/research/%EF%B8%8F-love-shot-(3301).html
    Pink anemones and blue and yellow wildflower buds accented this pretty black dress worn by the mother of the bride.

  19. https://rosssanchez9375.exblog.jp/35612611/
    To help you on your search, we’ve accomplished the hard work for you!

  20. I’ve been using it for a few days for trading, and the responsive team stands out. Charts are accurate and load instantly.

  21. Danielsnoni dice:

    п»їLately, I came across a great page concerning cheap Indian generics. It details CDSCO regulations on prescriptions. If anyone wants Trusted Indian sources, read this: п»їhttps://kisawyer.us.com/# india pharmacy mail order. Good info.

  22. Fast onboarding, wide token selection, and a team that actually cares. The mobile app makes daily use simple.

  23. Ralphkic dice:

    п»їJust now, I came across a helpful guide concerning buying affordable antibiotics. The site discusses CDSCO regulations on prescriptions. If anyone wants factory prices, take a look: п»їcheck here. Hope it helps.

  24. LloydRop dice:

    п»їActually, I found an interesting report regarding Mexican Pharmacy standards. It details how to save money when buying antibiotics. If you are looking for cheaper alternatives, go here: п»ї[url=https://polkcity.us.com/#]polkcity.us.com[/url]. Worth a read.

  25. https://fr-morning-4.tor1.digitaloceanspaces.com/research/goodnight-(1948).html
    One reviewer stated they wore a white jacket over the top however you would also select a wrap or bolero.

  26. RichardHex dice:

    п»їTo be honest, I found an interesting resource about Mexican Pharmacy standards. It covers how to save money for ED medication. For those interested in reliable shipping to USA, go here: п»їhttps://polkcity.us.com/# mexico pharmacy. It helped me.

  27. Everettrus dice:

    этот сайт [url=https://crab2.at]kraken зайти[/url]

  28. app_nfKi dice:

    For an unforgettable experience, download[url=https://lionking-apk.com/]app lion king[/url]and plunge into the world of adventure!
    Regular updates ensure the app remains fresh and interesting.

  29. app_ugKi dice:

    For an unforgettable experience, download[url=https://lionking-apk.com/]lionking apk[/url]and plunge into the world of adventure!
    Moreover, the soundtrack includes original and memorable tunes.

  30. app_qxKi dice:

    For an unforgettable experience, download[url=https://lionking-apk.com/]lionking apk[/url]and plunge into the world of adventure!
    The story is vividly brought to life through these visuals.

  31. Ralphkic dice:

    п»їJust now, I found a useful guide about cheap Indian generics. It details how to save money for ED medication. For those interested in factory prices, take a look: п»їread more. It helped me.

  32. I don’t even know how I finished up here, however I believed this put
    up used to be good. I don’t understand who you are
    however definitely you’re going to a well-known blogger when you aren’t already.

    Cheers!

  33. Danielsnoni dice:

    п»їRecently, I discovered a helpful page regarding ordering meds from India. It covers WHO-GMP protocols for ED medication. For those interested in cheaper alternatives, go here: п»їhttps://kisawyer.us.com/# top 10 pharmacies in india. Might be useful.

  34. I personally find that i’ve been using it for a month for learning crypto basics, and the scalable features stands out.

Responder a LloydRop Cancelar respuesta