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: 109,400

  1. 整復學徒 dice:

    https://je-tal-marketing-947.lon1.digitaloceanspaces.com/research/je-marketing-(62).html
    Knowing a little bit about what you’d like to put on may help you slim down your
    decisions.

  2. https://je-tal-marketing-930.lon1.digitaloceanspaces.com/research/je-marketing-(419).html
    Straight-leg pants create a streamlined silhouette that subtly complements the velvet burnout-print top and jacket.

  3. https://je-tal-marketing-982.lon1.digitaloceanspaces.com/research/je-marketing-(167).html
    The column silhouette skims the determine whereas nonetheless offering plenty of room to move.

  4. 按摩課程 dice:

    https://fr-korea-4.tor1.digitaloceanspaces.com/research/beauty-(1641).html
    This will allow you to slim down options, making the buying process easier.

  5. 整復學徒 dice:

    https://fr-tour-8.sgp1.digitaloceanspaces.com/research/star-(3622).html
    She’s a superhero to you and your complete household, so why not let her gown the half.

  6. https://fr-size-3.atl1.digitaloceanspaces.com/research/%EF%B8%8F-small-(1461).html
    Florals set on black or dark backgrounds really feel no much less romantic
    but actually deliver the delightfully unexpected.

  7. 整復師 dice:

    https://fr-morning-1.atl1.digitaloceanspaces.com/research/goodnight-(283).html
    Grab wonderful on-line deals on mother of the bride
    attire now and get free shipping within the United States.

  8. 整復師 dice:

    https://je-tall-marketing-857.lon1.digitaloceanspaces.com/research/je-marketing-(500).html
    Her strapless and blush pink gown, with textured floral details and an embellished
    belt, had this mom smiling from ear to ear.

  9. JosephDug dice:

    Online medicine order: Umass India Pharm – Umass India Pharm

  10. It’s really a nice and helpful piece of info. I am happy that you just shared
    this helpful information with us. Please keep us informed like this.
    Thanks for sharing.

  11. 撥筋證照 dice:

    https://fr-korea-10.sfo3.digitaloceanspaces.com/research/beauty-(4936).html
    We love spring colors like blush, gold, pale green, and blue together with floral prints for mom of the bride clothes for spring weddings.

  12. Доставка продуктів, https://mx.pinterest.com/pin/1086000897653788722 стала невід’ємною частиною нашого життя.

  13. https://fr-friends-10.nyc3.digitaloceanspaces.com/research/nothing-at-all-(4963).html
    From the floor-sweeping A-line skirt to the on-trend off-the-shoulder sleeves, there’s a lot to love.

  14. 撥筋課程 dice:

    https://fr-box-7.fra1.digitaloceanspaces.com/research/paris-(3466).html
    If the Bridesmaids are in a cornflower blue, for example, a navy and cornflower outfit would look
    great in the footage.

  15. https://fr-asia-3.atl1.digitaloceanspaces.com/research/asia-business-(1046).html
    Plan well upfront, so you will not get too careworn and might help either your son or daughter with the marriage preparations.

  16. https://je-tal-marketing-977.lon1.digitaloceanspaces.com/research/je-marketing-(7).html
    But, if I could add some personal recommendation, ENJOY the journey and means of it.

  17. 整復師 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20250904-13/research/je-marketing-(210).html
    If you’re in a pinch, many e-commerce sites
    like Net-a-Porter or Nordstrom offer rush delivery.

  18. https://fr-size.nyc3.digitaloceanspaces.com/research/%EF%B8%8F-small-(68).html
    Think about jewellery, shoes and purses – all things that can help make your mother of the bride outfit distinctive.

  19. 撥筋證照 dice:

    https://fr-seafood-4.tor1.digitaloceanspaces.com/research/yearbook-(1598).html
    This sweet and stylish midi with a built-in cape would look just as chic paired with an evening shoe
    as it will with a floor-length maxi.

  20. Hi, I read your new stuff like every week.
    Your writing style is awesome, keep up the good work!

  21. 學按摩 dice:

    https://fr-well-8.sgp1.digitaloceanspaces.com/research/%EF%B8%8F-france-(3670).html
    This mom wore a standard hanbokwith floral and geometric embroidery to her daughter’s California ranch marriage ceremony.

  22. https://fr-friends-10.nyc3.digitaloceanspaces.com/research/nothing-at-all-(4911).html
    You really want to think about what’s greatest for the season,
    and the weather you’ll be sitting in.

  23. What i don’t realize is in truth how you are now not actually
    much more smartly-appreciated than you may be right now.
    You’re so intelligent. You already know thus considerably on the subject of
    this topic, made me for my part believe it from so many varied angles.
    Its like women and men aren’t involved until it’s something to
    accomplish with Lady gaga! Your individual stuffs great.
    At all times handle it up!

  24. 按摩教學 dice:

    https://fr-cabinet-10.nyc3.digitaloceanspaces.com/research/Stuck-in-paris-(4640).html
    This will help her discover the complementary ensemble and stop her from being over or underdressed.

  25. https://fr-morning-3.sfo3.digitaloceanspaces.com/research/goodnight-(1387).html
    For the mother who likes to look put together and fashionable, a jumpsuit in slate
    grey is bound to wow.

  26. JosephDug dice:

    Umass India Pharm: Umass India Pharm – indian pharmacy online

  27. Diplomi_poSa dice:

    маи купить диплом [url=http://r-diploma11.ru/]маи купить диплом[/url] .

  28. https://fr-well-2.sfo3.digitaloceanspaces.com/research/%EF%B8%8F-france-(559).html
    The next thing you want to think about when purchasing around for
    clothes is the form of the costume.

  29. https://je-tal-marketing-959.lon1.digitaloceanspaces.com/research/je-marketing-(387).html
    But crucial piece of attire you may choose leading
    as a lot as your child’s wedding?

  30. 撥筋證照 dice:

    https://fr-size-10.syd1.digitaloceanspaces.com/research/%EF%B8%8F-small-(4697).html
    Opt for a well-cut, flowing sundress in a breathable fabric—and pair
    with dressy sandals to pull the look collectively (while nonetheless feeling
    snug on the sand!).

  31. https://fr-cabinet-10.nyc3.digitaloceanspaces.com/research/Stuck-in-paris-(4787).html
    The subtle scoop neck and sheer lace sleeves are simply a number of the issues we
    love about this A-line costume.

  32. 整復學徒 dice:

    https://fr-cabinet-4.tor1.digitaloceanspaces.com/research/Stuck-in-paris-(1745).html
    Sleeveless, short-sleeved, or 3/4 length, there is an possibility for nearly everyone!.

  33. situs slot dice:

    I really like your blog.. very nice colors & theme.
    Did you create this website yourself or did you hire someone to do it for you?
    Plz answer back as I’m looking to design my own blog
    and would like to find out where u got this from.
    thanks

  34. CraigWed dice:

    canadian mail order pharmacy [url=http://nyupharm.com/#]canadian pharmacy online[/url] canadian pharmacy ltd

  35. https://marketing-research4.fra1.digitaloceanspaces.com/research/research-for-asia-study-(2050).html
    Adhere to the dress code, and look to bridesmaids or
    the marriage robe for steering on daring patterns or elaborations.

  36. https://fr-asia-4.tor1.digitaloceanspaces.com/research/asia-business-(1885).html
    Oleg Cassini, exclusively at David’s Bridal Polyester, spandex
    Back zipper; totally lined Hand wash Imported.

  37. https://je-tall-marketing-855.tor1.digitaloceanspaces.com/research/je-marketing-(331).html
    They have the chic and easy mom of bride clothes obtainable via authenticated retailers or
    an official on-line retailer.

  38. https://fr-morning-1.atl1.digitaloceanspaces.com/research/goodnight-(197).html
    Similar to the moms of the bride and groom, the grandmothers could want to coordinate with the wedding get together.

  39. Michaelroyar dice:

    https://unmpharm.xyz/# buy modafinil from mexico no rx

  40. Hi to every , for the reason that I am in fact keen of reading this website’s post to be updated on a regular basis.
    It includes fastidious stuff.

Responder a situs slot Cancelar respuesta