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: 58,988

  1. 經絡課程 dice:

    https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-747/research/je-marketing-(280).html
    This glamorous gown in heat and rich gold enhances all pores and skin tones and pairs beautifully with
    gold and silver equipment.

  2. https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-742/research/je-marketing-(378).html
    Look for dresses in champagne, navy and even black (yes, it is totally modern to wear black to a wedding!) for a refined
    colour palette.

  3. https://je-tal-marketing-923.lon1.digitaloceanspaces.com/research/je-marketing-(191).html
    Impressive beading and an alluring neckline make this style worthy of even the
    fanciest of black-tie weddings.

  4. 按摩教學 dice:

    https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-786/research/je-marketing-(74).html
    For a mom, watching your daughter walk down the aisle and marry the
    love of her life is an unforgettable second.

  5. 撥筋課程 dice:

    https://je-sf-tall-marketing-729.b-cdn.net/research/je-marketing-(2).html
    But it’s important to verify in with the bride before you make any selections.

  6. https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-722/research/je-marketing-(176).html
    Not positive which color will work to greatest coordinate the mothers
    of the bride and groom with the relaxation of the bridal party?

  7. WendellloB dice:

    The Supreme Court agreed Monday to decide if the federal government may bar certain drug users from owning guns or if the law violates the Second Amendment, taking up a second significant guns case of its current term.
    [url=https://kra-42-at.net]kra42[/url]
    The appeal represents a rare circumstance in which the Trump administration is defending a gun prohibition, which it described in briefing at the Supreme Court as a “narrow” limitation on one of “Americans’ most cherished freedoms.”
    [url=https://kra–42–cc.ru]kra42[/url]
    The case centers on Ali Danial Hemani, a dual citizen of the United States and Pakistan, who was indicted in 2023 on a single count of violating the guns-and-drugs law after the FBI found a 9mm pistol, 60 grams of marijuana, and 4.7 grams of cocaine at his family home. This prosecution, the government told the high court, rested Hemani’s habitual use of marijuana.

    The court will likely hear arguments in the Hemani case next year and hand down a decision by the end of June.
    kra42 cc
    https://kra-42-at.com
    A federal district court dismissed the charge, noting a landmark decision from the Supreme Court in 2022 that made it easier for Americans to carry handguns in public and also required similar gun prohibitions to have a connection to history.

    But just how closely analogous prosecutors must come to a historic law has been a matter of debate. Last year, for instance, the Supreme Court upheld a federal law that bars guns for Americans who are the subject of certain domestic abuse restraining orders, rejecting an argument pressed by gun rights groups that the prohibition violated the Second Amendment.

    The conservative 5th US Circuit Court of Appeals upheld that decision, holding in a brief decision that the historical record points only to laws that barred guns for Americans who are actively intoxicated or under the influence of drugs at the time of their arrest. The government, the court ruled, could not target habitual users.

    The Trump administration appealed that decision.

  8. AnthonyCen dice:

    Viagra generic price comparison: Blue Peak Meds – difference between Viagra and generic Sildenafil

  9. https://je-tal-marketing-925.lon1.digitaloceanspaces.com/research/je-marketing-(420).html
    Gone are the days when mothers of the bride were anticipated to wear matronly clothes in washed-out
    shades of pastels or beige.

  10. https://je-sf-tall-marketing-738.b-cdn.net/research/je-marketing-(452).html
    If you’re a Nordstrom common, you will be pleased to know the beloved retailer has an intensive collection of mother-of-the-bride dresses.

  11. 整復學徒 dice:

    https://je-tal-marketing-900.lon1.digitaloceanspaces.com/research/je-marketing-(20).html
    As a mom of a daughter who’s already married, the looking
    for both her costume and mine was one of many highlights of the marriage planning.

  12. 撥筋課程 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20251015-1/research/je-marketing-(310).html
    With a gentle fit at the hips, this gown is designed to flatter you in all the proper places.

  13. seo продвижение сайта цена в москве [url=http://seo-prodvizhenie-reiting-kompanij.ru]seo продвижение сайта цена в москве[/url] .

  14. 經絡課程 dice:

    https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-708/research/je-marketing-(141).html
    The entire assortment is crafted with quality materials for
    weddings or another special occasion!

  15. 整復學徒 dice:

    https://filedn.eu/lXvDNJGJo3S0aUrNKUTnNkb/marketing-744/research/je-marketing-(292).html
    This brocade robe draws the attention to all the right places—from a touch of pores and skin on the shoulder to a ruched waist.

Responder a https://rant.li/southafricacams/les-meilleurs-codes-gratuits-1xbet-pour-bonus-de-bienvenue-et-paris-sans-depot-8gz2 Cancelar respuesta