saa Infraestructura como código – Politraining

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: 144,844

  1. WilliamDig dice:

    Online medicine home delivery: Indo-Generic Export – Online medicine home delivery

  2. StephenThura dice:

    US Meds Outlet [url=https://usmedsoutlet.shop/#]US Meds Outlet[/url] legit pharmacy websites

  3. HarryUntox dice:

    US Meds Outlet: US Meds Outlet – pharmacy website india

  4. vw108 dice:

    Hello, I enjoy reading through your article post. I wanted to write a little
    comment to support you.

  5. mostbet_ffSl dice:

    mostbet минимальный вывод [url=http://mostbet72461.help]mostbet минимальный вывод[/url]

  6. フィギュア 無 修正and,tries to explain the causes owing to which he has made his appearance and was bound to make his appearance in our midst.

  7. электрические рулонные шторы на окна [url=https://rulonnaya-shtora-s-elektroprivodom.ru/]электрические рулонные шторы на окна[/url] .

  8. дайсон фен выпрямитель для волос купить оригинал [url=https://dsn-vypryamitel-8.ru/]дайсон фен выпрямитель для волос купить оригинал[/url] .

  9. электрокарнизы для штор купить в москве [url=https://elektrokarniz5.ru/]электрокарнизы для штор купить в москве[/url] .

  10. 女性 用 ラブドールShe felt that as she brought with her the person thedying man wished to see,her own admission was assured.

  11. each withtheir own special claims and responsibilities; that they deliberatelyformed a Social State,人形 エロeither by a contract or otherwise; and that thenfinally they limited their own action out of regard for the interests ofthe social organism thus arbitrarily produced.

  12. дайсон фен выпрямитель для волос купить оригинал [url=https://dsn-vypryamitel-8.ru/]дайсон фен выпрямитель для волос купить оригинал[/url] .

  13. Link exchange is nothing else except it is only placing the other person’s blog link on your page at appropriate place and other person will also do similar for you.

  14. выпрямитель дайсон купить в москве оригинал [url=https://dsn-vypryamitel-8.ru/]выпрямитель дайсон купить в москве оригинал[/url] .

  15. 65 Excellent earthhall; but within and without it Was fastened so firmly in fetters of iron,By the art of the armorer.オナホ フィギュア

  16. I don’t even know how I finished up here, however I thought this post
    used to be good. I do not recognise who you are however definitely you are going to a famous blogger
    if you happen to are not already. Cheers!

  17. HarryUntox dice:

    BajaMed Direct: BajaMed Direct – mexi pharmacy

  18. WilliamDig dice:

    reliable online pharmacy: pharmacy order online – US Meds Outlet

  19. электрокранизы [url=https://elektrokarniz5.ru/]электрокранизы[/url] .

  20. 1win_phPi dice:

    1win вход по почте [url=http://1win09834.help]http://1win09834.help[/url]

  21. I personally find that i’ve been using it for a week for using the API, and the responsive team stands out.

  22. I’ve been using it for half a year for trading, and the low fees stands out.

  23. карниз с электроприводом [url=https://elektrokarniz5.ru/]карниз с электроприводом[/url] .

  24. онлайн класс [url=https://shkola-onlajn-24.ru/]онлайн класс[/url] .

  25. and thewhole reckoning depends upon that.フィギュア 無 修正It would be no great matter,

  26. were still undistinguished.Among earlyenquirers into the nature of human action the arts helped to fill upthe void of speculation; and at first the comparison of the arts andthe virtues was not perceived by them to be fallacious.ラブドール オナニー

  27. карниз с электроприводом [url=https://elektrokarniz5.ru/]карниз с электроприводом[/url] .

  28. This post is actually a nice one it assists new
    web visitors, who are wishing in favor of blogging.

  29. With havin so much content and articles do you
    ever run into any problems of plagorism or copyright violation? My website
    has a lot of completely unique content I’ve either created myself or outsourced but it appears a lot
    of it is popping it up all over the internet without
    my permission. Do you know any methods to help
    reduce content from being ripped off? I’d really appreciate it.

  30. as anexample of that very frequent infirmity of English minds,人形 エロwhich makesthem take a preposterous pleasure in the assertion of a bad principle,

  31. карниз для штор с электроприводом [url=https://elektrokarnizy750.ru/]карниз для штор с электроприводом[/url] .

  32. электрокарнизы в москве [url=https://elektrokarnizy750.ru/]электрокарнизы в москве[/url] .

  33. I think this is among the most important info for me.
    And i’m glad reading your article. But wanna remark on some general things, The web site style is
    wonderful, the articles is really nice : D.
    Good job, cheers

    My blog post; промокод винлаб на первый заказ через приложение

  34. HarryUntox dice:

    24 hour pharmacy near me: canadian pharmacy checker – US Meds Outlet

Responder a ラブドール Cancelar respuesta