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: 40,176

  1. zaimi_lrOl dice:

    микрозаймы онлайн [url=https://zaimy-30.ru/]микрозаймы онлайн[/url] .

  2. RevaNail buy dice:

    This all-natural formula from NewEra Protect works to reinforce pelvic floor muscles, aid bladder control, and empower women to feel like themselves again.

  3. zaimi_vamn dice:

    все займы на карту [url=www.zaimy-27.ru/]все займы на карту[/url] .

  4. Diplomi_alEt dice:

    где купить диплом техникума в спб [url=http://frei-diplom11.ru/]где купить диплом техникума в спб[/url] .

  5. SEO dice:

    Very interesting and easy to follow.

  6. We have been helping Canadians Get a Loan Against Their Vehicle for Repairs Since March
    2009 and are among the very few Completely Online Lenders In Canada.
    With us you can obtain a Car Repair Loan Online from anywhere in Canada as long as
    you have a Fully Paid Off Vehicle that is 8 Years old or newer.
    We look forward to meeting all your financial needs.

  7. zaimi_roOl dice:

    мфо займ [url=www.zaimy-30.ru/]мфо займ[/url] .

  8. zaimi_rwKi dice:

    все займ [url=https://zaimy-50.ru]https://zaimy-50.ru[/url] .

  9. In all such cases there should be perfect freedom,フィギア エロlegaland social,

  10. Diplomi_xeEa dice:

    купить диплом охранника [url=www.rudik-diplom6.ru]купить диплом охранника[/url] .

  11. zaimi_bfmn dice:

    займы онлайн [url=http://www.zaimy-27.ru]займы онлайн[/url] .

  12. エロ フィギュア 無 修正‘The time has come for us to part.’ It wasvery affecting.

  13. MichealFargy dice:

    Ever Trust Meds [url=http://evertrustmeds.com/#]Buy Tadalafil 5mg[/url] Ever Trust Meds

  14. lucky pari блэкджек [url=https://luckypari100.ru/]https://luckypari100.ru/[/url]

  15. zaimi_olOl dice:

    сайт микрозаймов [url=https://zaimy-30.ru]сайт микрозаймов[/url] .

  16. zaimi_uyKi dice:

    микрозаймы все [url=www.zaimy-50.ru/]www.zaimy-50.ru/[/url] .

  17. In today’s fast-evolving financial landscape, it’s rare to find a platform that seamlessly bridges both crypto and fiat
    operations, especially for large-scale operations.
    However, I came across this discussion that dives deep into a platform which supports everything from buying Bitcoin to managing fiat payments, and it’s especially recommended for
    big businesses.
    The opinion shared by users in the discussion made it clear that this platform is
    more than just a simple exchange – it’s a full-fledged
    financial ecosystem for both individuals and companies.

    What’s particularly valuable is the level of detail provided in the forum topic, including
    the pros and cons, user reviews, and case studies showing how enterprises have integrated the platform into their operations.

    This topic could be particularly useful for anyone seeking a compliant, scalable, and secure solution for managing both crypto and fiat funds.
    The website being discussed is built to handle everything from simple
    BTC purchases to large-scale B2B transactions.

    It’s a long read, but this forum topic offers some of the most detailed
    opinions on using crypto platforms for corporate and
    fiat operations alike. Definitely worth digging into this website.

  18. zaimi_kkmn dice:

    все займы онлайн на карту [url=www.zaimy-27.ru]все займы онлайн на карту[/url] .

  19. Diplomi_lrma dice:

    купить диплом аграрного техникума [url=www.frei-diplom10.ru/]купить диплом аграрного техникума[/url] .

  20. sibir_jhKl dice:

    [url=https://sibirki3.vip/]проститутки недорого Новосибирск[/url]
    Недорогие проститутки в Новосибирске привлекают внимание множества клиентов.

  21. I’m not sure the place you are getting your info, but good topic.
    I must spend some time studying much more or understanding more.
    Thanks for fantastic info I used to be in search
    of this info for my mission.

  22. エロオナホGeraldine acceptedhim in a speech a page long.I can tell you I took a lot of troublewith that speech.

  23. sibir_toKl dice:

    [url=https://sibirki3.vip/]проститутки недорого Новосибирск[/url]
    Выбор таких услуг зависит от личных предпочтений и бюджета.

  24. zaimi_xhOl dice:

    займы все онлайн [url=https://zaimy-30.ru/]займы все онлайн[/url] .

  25. zaimi_uhKi dice:

    все займы онлайн [url=https://zaimy-50.ru/]все займы онлайн[/url] .

  26. betspin5000 dice:

    My programmer is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type on a number of websites for about a year and am worried about switching to another platform.
    I have heard good things about blogengine.net.

    Is there a way I can transfer all my wordpress posts into it?

    Any kind of help would be greatly appreciated!

  27. zaimi_skmn dice:

    сайт микрозаймов [url=http://zaimy-27.ru/]http://zaimy-27.ru/[/url] .

  28. Dennismam dice:

    VitalEdge Pharma: VitalEdgePharma – VitalEdge Pharma

  29. toto12 dice:

    I’m truly enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did
    you hire out a designer to create your theme? Excellent work!

  30. フィギュア 無 修正why do you make such compacts withyourselfand on paper too that you won’t attempt any systemor method,that you jot things down as you remember them,

  31. Diplomi_rist dice:

    купить диплом в клинцах [url=http://www.rudik-diplom14.ru]купить диплом в клинцах[/url] .

  32. Diplomi_saPt dice:

    как купить диплом техникума в казани [url=https://www.frei-diplom7.ru]как купить диплом техникума в казани[/url] .

  33. zaimi_rsOl dice:

    микрозайм все [url=http://zaimy-30.ru]http://zaimy-30.ru[/url] .

  34. zaimi_yyKi dice:

    все займы [url=http://zaimy-50.ru/]все займы[/url] .

  35. zaimi_zymn dice:

    список займов онлайн [url=https://www.zaimy-27.ru]список займов онлайн[/url] .

  36. evos toto dice:

    I for all time emailed this webpage post page to all my associates,
    since if like to read it afterward my links will too.

  37. tentoto dice:

    We stumbled over here different website and thought I might as well check things out.

    I like what I see so now i am following you. Look forward to
    looking into your web page again.

  38. zaimi_tlOl dice:

    микрозаймы все [url=zaimy-30.ru]микрозаймы все[/url] .

  39. toto12 dice:

    I do trust all the concepts you have offered in your post.
    They are very convincing and can certainly work. Nonetheless,
    the posts are very short for beginners. Could you please
    lengthen them a bit from next time? Thank you for the post.

  40. zaimi_joKi dice:

    сайт микрозаймов [url=www.zaimy-50.ru/]www.zaimy-50.ru/[/url] .

  41. zaimi_emmn dice:

    все займы [url=http://zaimy-27.ru/]все займы[/url] .

  42. It’s enormous that you are getting ideas from this article as well as from
    our argument made at this time.

  43. Diplomi_bnEa dice:

    купить диплом в армавире [url=www.rudik-diplom6.ru/]купить диплом в армавире[/url] .

  44. Diplomi_ynma dice:

    купить диплом техникума спб в южно сахалинске [url=www.frei-diplom10.ru]купить диплом техникума спб в южно сахалинске[/url] .

Responder a zaimi_yyKi Cancelar respuesta