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: 88,495

  1. Charlesjurse dice:

    buy abortion pills: buy abortion pills – buy abortion pills

  2. Charlesjurse dice:

    where can i purchase metformin 1000 mg without prescription: UclaMetformin – Ucla Metformin

  3. pinco dice:

    подобный вид бонуса bonscasino обычно, меньше по сумме,
    чем бонусы на счет, но он все равно дает
    игрокам шанс попробовать игры казино,
    pinco не.

  4. Hey There. I found your blog the use of msn. This
    is a really smartly written article. I will be sure to bookmark it and return to learn extra of your helpful info.
    Thank you for the post. I’ll definitely
    return.

  5. вывод из запоя череповец
    vivod-iz-zapoya-cherepovec016.ru
    вывод из запоя череповец

  6. PatrickFes dice:

    buy medicines online in india https://socalabortionpill.com/# Socal Abortion Pill

  7. Robertcom dice:

    Elusive shipwreck found in Lake Michigan over 100 years after sinking
    [url=https://rutordeepeib6lopqoor55gfbnvh2zbsyxqpv5hnjg2qcji2x7sookqd.com]rutordark63xripv2a3skfrgjonvr3rqawcdpj2zcbw3sigkn6l3xpad onion[/url]
    A “ghost ship” that sank in Lake Michigan nearly 140 years ago and eluded several search efforts over the past five decades has been found, according to researchers with the Wisconsin Underwater Archeology Association.

    The wooden schooner got caught in a storm in the dead of night and went down in September 1886. In the weeks after, a lighthouse keeper reported the ship’s masts breaking the lake surface, and fishermen caught pieces of the vessel in their nets. Still, wreck hunters were unable to track down the ship’s location — until now.
    https://rutorcoolfldlmrpalkmfklw3nyzad6b6fycdtof3xbnixkerr47udyd.com
    rutorclubwiypaf63caqzlqwtcxqu5w6req6h7bjnvdlm4m7tddiwoyd onion
    Earlier this year, a team of researchers with the Wisconsin Underwater Archeology Association and Wisconsin Historical Society located the shipwreck off the coastal town of Baileys Harbor, Wisconsin, the association announced on Sunday.

    Named the F.J. King, the ship had become a legend within the Wisconsin wreck hunter community for its elusive nature, said maritime historian Brendon Baillod, principal investigator and project lead of the discovery.

    “We really wanted to solve this mystery, and we didn’t expect to,” Baillod told CNN. “(The ship) seemed to have just vanished into thin air. … I actually couldn’t believe we found it.”

    The wreck is just one of many that have been found in the Great Lakes in recent years, and there are still hundreds left to be recovered in Lake Michigan alone, according to Baillod.

    The ‘ghost ship’
    Built in 1867, the F.J. King plied the waters of the Great Lakes for the purpose of trans-lake commerce. The ship transported grains during a time when Wisconsin served as the breadbasket of the United States. The 144-foot-long (44-meter) vessel also carried cargo including iron ore, lumber and more.

    The ship had a lucrative 19-year career until that September night when a gale-force wind caused its seams to break apart, according to the announcement. The captain, William Griffin, ordered the crew to evacuate on the ship’s yawl boat, from where they watched the F.J. King sink, bow first.

  8. StephenInazy dice:

    Elusive shipwreck found in Lake Michigan over 100 years after sinking
    [url=https://rutordark63xripv2a3skfrgjonvr3rqawcdpj2zcbw3sigkn6l3xpad.com]rutor24 to[/url]
    A “ghost ship” that sank in Lake Michigan nearly 140 years ago and eluded several search efforts over the past five decades has been found, according to researchers with the Wisconsin Underwater Archeology Association.

    The wooden schooner got caught in a storm in the dead of night and went down in September 1886. In the weeks after, a lighthouse keeper reported the ship’s masts breaking the lake surface, and fishermen caught pieces of the vessel in their nets. Still, wreck hunters were unable to track down the ship’s location — until now.
    https://rutordev.com
    rutordeepeib6lopqoor55gfbnvh2zbsyxqpv5hnjg2qcji2x7sookqd onion
    Earlier this year, a team of researchers with the Wisconsin Underwater Archeology Association and Wisconsin Historical Society located the shipwreck off the coastal town of Baileys Harbor, Wisconsin, the association announced on Sunday.

    Named the F.J. King, the ship had become a legend within the Wisconsin wreck hunter community for its elusive nature, said maritime historian Brendon Baillod, principal investigator and project lead of the discovery.

    “We really wanted to solve this mystery, and we didn’t expect to,” Baillod told CNN. “(The ship) seemed to have just vanished into thin air. … I actually couldn’t believe we found it.”

    The wreck is just one of many that have been found in the Great Lakes in recent years, and there are still hundreds left to be recovered in Lake Michigan alone, according to Baillod.

    The ‘ghost ship’
    Built in 1867, the F.J. King plied the waters of the Great Lakes for the purpose of trans-lake commerce. The ship transported grains during a time when Wisconsin served as the breadbasket of the United States. The 144-foot-long (44-meter) vessel also carried cargo including iron ore, lumber and more.

    The ship had a lucrative 19-year career until that September night when a gale-force wind caused its seams to break apart, according to the announcement. The captain, William Griffin, ordered the crew to evacuate on the ship’s yawl boat, from where they watched the F.J. King sink, bow first.

  9. Wow, this paragraph is pleasant, my younger sister is analyzing these
    things, so I am going to let know her.

  10. Hi, I do think this is an excellent web site. I stumbledupon it 😉 I am going to
    come back yet again since i have book-marked it. Money and freedom is the
    greatest way to change, may you be rich and continue to guide other people.

  11. Davidvat dice:

    Ucla Metformin [url=http://uclametformin.com/#]UclaMetformin[/url] metformin hydrochloride 500 mg

  12. I like what you guys tend to be up too. This kind of clever work and reporting!
    Keep up the fantastic works guys I’ve added you guys to
    blogroll.

  13. Charlesjurse dice:

    cost cheap propecia no prescription: cheap propecia without insurance – BSW Finasteride

  14. Hey are using WordPress for your blog platform? I’m new to
    the blog world but I’m trying to get started and create my own.
    Do you require any html coding expertise to make your own blog?
    Any help would be really appreciated!

  15. An impressive share! I’ve just forwarded this onto a coworker who was
    conducting a little homework on this. And he actually
    bought me lunch simply because I found it for
    him… lol. So let me reword this…. Thank YOU for the meal!!
    But yeah, thanks for spending the time to discuss this
    matter here on your web page.

  16. Aw, this was an incredibly good post. Taking the time and actual effort to make a
    superb article… but what can I say… I procrastinate a whole lot and don’t manage to get nearly anything done.

  17. PatrickFes dice:

    india pharmacy mail order https://socalabortionpill.xyz/# Socal Abortion Pill

  18. えろ 人形deadly danger,the possibility of a suddenonslaught and massacre,

  19. Davidvat dice:

    BSW Finasteride [url=https://bswfinasteride.com/#]generic propecia without a prescription[/url] get generic propecia without rx

  20. Greetings from Florida! I’m bored to tears at work so I decided to check out your blog on my iphone during lunch break.
    I love the information you present here and can’t wait to take a look when I get
    home. I’m amazed at how fast your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyways, good
    site!

  21. This is a good tip particularly to those new to the blogosphere.

    Short but very precise info… Many thanks for sharing this
    one. A must read article!

Responder a how to hack clash of lords 2 clash divin Cancelar respuesta