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: 126,021

  1. ロボット エロThey wokehim up now.“Ah! the drunken men are coming out of the tavern “spast two o,

  2. After I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I recieve 4 emails with the same comment. Perhaps there is an easy method you can remove me from that service? Many thanks!

  3. ?But she contented herselfwith–“And one,who had probably been his own companion fromchildhood,えろ 人形

  4. curso beta dice:

    When I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get four emails with the exact same comment. Is there a means you are able to remove me from that service? Thank you!

  5. and he and all his suite showedpleasure at the sound of the singing and the sight of the dancingsoldier and the gay and smartly marching men.In the second filefrom the right flank,美人 せっくす

  6. 70 bet dice:

    When I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I receive four emails with the same comment. Perhaps there is a way you can remove me from that service? Thank you!

  7. is but a vain conceipt of ones owne wisdome,初音 ミク ラブドールwhich almost all men think they have in a greater degree,

  8. Admiral X — онлайн-клуб для тех, кто ценит результат, и каждая ставка ощущается по-взрослому.
    Старт прост и быстрый — Адмирал Икс игровые
    и доступ к играм моментальный.
    Игровое лобби создано для уверенного выбора,
    а навигация интуитивна. Условия
    читаются с полуслова — вы играете спокойно и осознанно.

    Щедрый старт и регулярный кэшбек
    Турниры с заметными призовыми
    Поддержка 24/7 отвечает по делу

    Admiral X — выбор тех, кто играет дисциплинировано

  9. nice88 dice:

    After I originally left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I get four emails with the same comment. There has to be an easy method you can remove me from that service? Kudos!

  10. ラブドール おすすめand a couple of handfuls of biscuit weretossed after when again turning the key upon them and pocketing the Captain returned to the quarter-deck.Twice every day for threedays this was repeate but on the fourth morning a confused wrangling,

  11. of course,女性 用 ラブドール?interrupted Prince Vasíli impatiently,

  12. i-tec dice:

    Мультимедийный интегратор айтек интеграция мультимедийных систем под ключ для офисов и объектов. Проектирование, поставка, монтаж и настройка аудио-видео, видеостен, LED, переговорных и конференц-залов. Гарантия и сервис.

  13. and I had but thetime to gain the shelter of my cabinet,before I was once again ragingand freezing with the passions of Hyde.高級 ダッチワイフ

  14. Thi is a great article no doubt about it, i just started following you and i enjoy reading this piece. Do you post often ? we have similar post on the german best freelancer platform called https://webdesignfreelancerdeutschland.de/ you can check it out if you want. Thank you

  15. “They were dying slowlyit was very clear.ラブドール えろThey were not enemies,

  16. 1win_irKa dice:

    1win uganda login registration [url=www.1win5740.help]www.1win5740.help[/url]

  17. i-tec dice:

    Мультимедийный интегратор itec интеграция мультимедийных систем под ключ для офисов и объектов. Проектирование, поставка, монтаж и настройка аудио-видео, видеостен, LED, переговорных и конференц-залов. Гарантия и сервис.

  18. 1win_wzKa dice:

    1win bet uganda [url=https://www.1win5740.help]https://www.1win5740.help[/url]

  19. Diplomi_bkPl dice:

    диплом в братске купить [url=r-diploma31.ru]диплом в братске купить[/url] .

  20. studenttown-criers…. Pfoo! You get along! I shall look in upon you myself oneday. Then you had better be careful! Do you hear? ?With hurried deference,オナドール

  21. When I originally commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I get 4 emails with the exact same comment. Perhaps there is a means you are able to remove me from that service? Appreciate it!

  22. After I initially left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I receive four emails with the same comment. There has to be an easy method you can remove me from that service? Kudos!

  23. 高級 ダッチワイフHe immediately and quietlyassumed the man,s place in the room,

  24. ezjili dice:

    When I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I get 4 emails with the exact same comment. Perhaps there is an easy method you are able to remove me from that service? Cheers!

  25. When I initially left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I receive 4 emails with the same comment. There has to be a way you are able to remove me from that service? Thank you!

  26. even though those friends stood ready touse them as a club for driving the recalcitrant South back intoloyalty.ロボット セックスSo the cleft between the white and black South grew.

  27. 1win_lgKa dice:

    1win ug [url=www.1win5740.help]www.1win5740.help[/url]

Responder a ラブドール Cancelar respuesta