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: 23,861

  1. nadachee.ru dice:

    We stumbled over here different website and thought I may as well check things out. I like what I see so now i’m following you. Look forward to looking at your web page again.

  2. An intriguing discussion is worth comment. I believe that you should write more on this topic, it might not be a taboo subject but usually people don’t speak about such subjects. To the next! Kind regards!!

  3. Hey there! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no backup. Do you have any solutions to prevent hackers?

  4. Hi there to every body, it’s my first visit of this weblog; this weblog consists of remarkable and in fact good information for readers.

  5. Source dice:

    What i do not understood is if truth be told how you are no longer really a lot more
    neatly-liked than you might be now. You are so intelligent.
    You know thus significantly in relation to this subject, made me in my view imagine
    it from numerous varied angles. Its like men and women are not involved except it is one thing to
    accomplish with Girl gaga! Your individual stuffs excellent.
    All the time care for it up!

  6. Nida dice:

    Thɑnk yоu for your whole labor on this web page. Kate really likes dоing internet гesearch
    аnd it’s easy to understand ԝhy. M᧐st people learn all regɑrding thе dynamic mеans you render practical tips ɑnd tricks bʏ means οf the web site ɑnd even invigorate participation fгom people on thе subject and our
    own simple princess іs іn faсt learning a wһole ⅼot.

    Tаke advantage of tһe remaining portion of the ʏear.
    Ⲩߋu are carrying οut a gоod job.

    Aⅼsօ visit mү web-site: wood furniture – Nida,

  7. Kiera Mann dice:

    son dakika malatya haberleri

  8. Design Books dice:

    I need to tο tһank yoս foг this vеry ɡood гead!!
    I ԁefinitely loved еverү littⅼe bit of it. I have ɡot ʏⲟu book marked t᧐ check օut new tһings you post?

    my web site – Design Books

  9. Elisha Nader dice:

    Your approach to this subject is so unique. Thanks for sharing your thoughts.

  10. After looking into a number of the blog articles on your website, I honestly like your way of blogging. I bookmarked it to my bookmark site list and will be checking back soon. Please check out my web site as well and let me know what you think.

  11. ดูหนังโป๊ ดูหนังโป๊ ดูหนังโป๊ Thai Porn หนังโป๊ ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊

  12. ดูหนังโป๊ ดูหนังโป๊ ดูหนังโป๊ Thai Porn หนังโป๊ ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊

  13. ดูหนังโป๊ ดูหนังโป๊ ดูหนังโป๊ Thai Porn หนังโป๊ ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ หนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊ ดูหนังโป๊ฟรี ดูหนังโป๊

  14. I’m bookmarking this for future reference.

  15. Well-researched and thought-provoking.

  16. A well-crafted piece that’s full of insights.

  17. A deep dive that was worth every minute.

  18. บริษัทรับทำเว็บไซต์ WordPress ราคาประหยัด เน้นความรวดเร็ว โหลดเร็ว SEO แรง บริษัท รับทำเว็บไซต์ WordPress มาตรฐาน มืออาชีพ รับทำเว็บไซต์ทุกรูปแบบไม่ว่าจะเป็น SME บริษัทเอกชน หรือ หน่วยงานราชการ โดยผู้เชี่ยวชาญ เราให้บริการ รับจ้างทำเว็บ WordPress ออกแบบเว็บไซต์ WordPress ใหม่ดีไซน์ไม่ซ้ำใคร รองรับการแสดงผลได้ทุกหน้าจอ รับเขียนธีม WordPress ตามต้องการ รับเขียนปลั๊กอิน WordPress ตามการใช้งาน ด้วยประสบการณ์มากกว่า 10 ปี ถูกต้องตามหลัก SEO (SEO Friendly) และโหลดเร็ว Page Speed ดีกว่าเว็บไซต์คู่แข่งแน่นอน

  19. สำหรับผู้ที่รับบทบาทเป็น “เจ้าของธุรกิจ” น่าจะคุ้นเคยกับบริการเกี่ยวกับรับทำเว็บไซต์ไม่มากก็น้อย เหตุผลที่คุณควรจ้าง บริษัท รับทำเว็บไซต์ WordPress ทำเว็บไซต์ให้ 1. ประหยัดเวลาและทรัพยากร 2. ได้เว็บไซต์ที่มีคุณภาพ 3. ได้รับบริการหลังการขาย

  20. แนะนำ บริษัท รับทำเว็บไซต์ WordPress ในยุคดิจิทัล การมีเว็บไซต์เปรียบเสมือนหน้าร้านออนไลน์ที่ช่วยให้ธุรกิจของคุณเข้าถึงลูกค้าได้กว้างขึ้น WordPress เป็นแพลตฟอร์มสร้างเว็บไซต์ยอดนิยมที่ใช้งานง่าย เหมาะสำหรับทั้งมือใหม่และมืออาชีพ แต่การจะสร้างเว็บไซต์ WordPress ที่ดีนั้น จำเป็นต้องมีบริษัทมืออาชีพที่เข้าใจระบบ WordPress อย่างลึกซึ้ง

  21. Hey there, You have done a great job. I will definitely digg it and personally recommend to my friends. I am sure they will be benefited from this site.

  22. บริษัทรับทำเว็บไซต์ WordPress ราคาประหยัด เน้นความรวดเร็ว โหลดเร็ว SEO แรง บริษัท รับทำเว็บไซต์ WordPress มาตรฐาน มืออาชีพ รับทำเว็บไซต์ทุกรูปแบบไม่ว่าจะเป็น SME บริษัทเอกชน หรือ หน่วยงานราชการ โดยผู้เชี่ยวชาญ เราให้บริการ รับจ้างทำเว็บ WordPress ออกแบบเว็บไซต์ WordPress ใหม่ดีไซน์ไม่ซ้ำใคร รองรับการแสดงผลได้ทุกหน้าจอ รับเขียนธีม WordPress ตามต้องการ รับเขียนปลั๊กอิน WordPress ตามการใช้งาน ด้วยประสบการณ์มากกว่า 10 ปี ถูกต้องตามหลัก SEO (SEO Friendly) และโหลดเร็ว Page Speed ดีกว่าเว็บไซต์คู่แข่งแน่นอน

  23. You’ve captured the essence beautifully.

  24. A nuanced view that’s much needed today.

  25. Really made me think differently about the topic.

  26. Snapmaker dice:

    Hello my loved one! I want to say that this post is amazing, great written and include approximately all important infos.
    I would like to peer extra posts like this .

  27. My brother suggested I might like this website He was totally right This post actually made my day You cannt imagine just how much time I had spent for this information Thanks

  28. Hey there would you mind stating which blog platform you’re working with? I’m planning to start my own blog in the near future but I’m having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I’m looking for something completely unique. P.S My apologies for getting off-topic but I had to ask!

  29. Hi there! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done a outstanding job!

  30. This article provides clear idea designed for the new people of blogging, that actually how to do blogging.

  31. Aw, this was a really nice post. Taking the time and actual effort to create a very good article but what can I say I procrastinate a lot and never seem to get anything done.

  32. This was a refreshing read, different from the usual content out there.

  33. Simply wish to say your article is as amazing The clearness in your post is just nice and i could assume youre an expert on this subject Well with your permission let me to grab your feed to keep updated with forthcoming post Thanks a million and please carry on the gratifying work

  34. I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100% positive. Any tips or advice would be greatly appreciated. Cheers

  35. Kudostothewriterforsheddinglightonthisissue.

Agrega tu comenatio