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: 106,807

  1. Hi there, every time i used to check blog posts here early
    in the break of day, as i enjoy to gain knowledge of
    more and more.

  2. Kennethpem dice:

    legitimate canadian mail order pharmacy: Nyu Pharm – pharmacy canadian

  3. JosephDug dice:

    Umass India Pharm: Umass India Pharm – Umass India Pharm

  4. Miami dice:

    I was recommended this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed
    about my trouble. You are amazing! Thanks!

  5. 整骨學徒 dice:

    https://fr-cabinet-6.sgp1.digitaloceanspaces.com/research/Stuck-in-paris-(2735).html
    But it’s important to examine in with the bride earlier than you make any choices.

  6. What is his art? An excuse for gloating over picturesof slaughter.What are his politics? Either the worship of a despotbecause a despot can kill,ラブドール アニメ

  7. Rostóv rode in the direction pointed out to him,in whichhe saw turrets and a church.高級 オナホ

  8. Diplomi_nvSn dice:

    диплом медсестры с аккредитацией купить [url=www.frei-diplom13.ru]диплом медсестры с аккредитацией купить[/url] .

  9. 舒壓課程 dice:

    https://je-tal-marketing-938.lon1.digitaloceanspaces.com/research/je-marketing-(231).html
    Much just like the mother of the groom, step-mothers of each
    the bride or groom ought to comply with the lead of the mother of the bride.

  10. CraigWed dice:

    Unm Pharm [url=http://unmpharm.com/#]Unm Pharm[/url] buy viagra from mexican pharmacy

  11. looked with glittering enviouseyes at those who were passing.Glancing in at the door,女性 用 ラブドール

  12. 按摩學徒 dice:

    https://fr-cabinet-6.sgp1.digitaloceanspaces.com/research/Stuck-in-paris-(2875).html
    Her strapless and blush pink robe, with textured
    floral details and an embellished belt, had this mother
    smiling from ear to ear.

  13. Kennethpem dice:

    rate canadian pharmacies: best canadian pharmacy to buy from – canadian pharmacy review

  14. web site dice:

    Thanks for sharing such a nice idea, post is fastidious, thats why i have read it completely

  15. ロシア エロFor this business one should be as little conspicuous aspossible…. Trifles,

  16. FortuixAgent dice:

    Wow, incredible blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your web
    site is fantastic, let alone the content!

  17. 撥筋證照 dice:

    https://fr-friends-5.lon1.digitaloceanspaces.com/research/nothing-at-all-(2475).html
    Sort by way of our full selection of clothes to search out
    your excellent fit in many colors and any size.

  18. Ꭺ片 dice:

    I used to be able to find good info from your articles.

    Feel free to surf to my blog post – Ꭺ片

  19. CraigWed dice:

    Unm Pharm [url=https://unmpharm.xyz/#]legit mexico pharmacy shipping to USA[/url] Unm Pharm

  20. JosephDug dice:

    buy propecia mexico: amoxicillin mexico online pharmacy – tadalafil mexico pharmacy

  21. so grand in its masses of splendidly-coloured cloud thatthere was quite an assemblage on the walk along the cliff in the oldchurchyard to enjoy the beauty.ラブドール リアルBefore the sun dipped below the blackmass of Kettlenes standing boldly athwart the western sky,

  22. CraigWed dice:

    www canadianonlinepharmacy [url=https://nyupharm.com/#]Nyu Pharm[/url] certified canadian international pharmacy

  23. JosephDug dice:

    indian pharmacy paypal: Online medicine home delivery – Umass India Pharm

  24. Kennethpem dice:

    canadian pharmacies online: buy prescription drugs from canada cheap – canadian pharmacy uk delivery

  25. 中国 えろImay not have the pleasure to talk to-night,since there are many laboursto me,

  26. オナホ 高級It must be so nice to see strangecountries.I wonder if we–I mean Jonathan and I–shall ever see themtogether.

  27. Fırat Engin bahis siteleri, Casino Siteleri Nargül Engin, Slot Siteleri Hüseyin Engin, Deneme
    Bonusu Veren Siteler Ahmet Engin, Mehdi Deneme Bonusu, Mehdi Deneme bonusu veren siteler

  28. JosephDug dice:

    Unm Pharm: Unm Pharm – Unm Pharm

  29. https://je-tal-marketing-945.lon1.digitaloceanspaces.com/research/je-marketing-(205).html
    As a mother of a daughter who is already married, the purchasing for each
    her gown and mine was one of the highlights of the wedding planning.

  30. JosephDug dice:

    certified canadian international pharmacy: canadian valley pharmacy – canadian online drugstore

  31. amid the smoke,ラブドール 最新was something resembling a battery,

  32. webpage dice:

    Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is fundamental and everything.
    However think of if you added some great visuals or videos to give your posts more, “pop”!

    Your content is excellent but with images and videos, this website could undeniably be one of
    the greatest in its field. Superb blog!

  33. Michaelroyar dice:

    https://nyupharm.xyz/# online canadian pharmacy reviews

  34. 撥筋教學 dice:

    https://fr-seafood-5.lon1.digitaloceanspaces.com/research/yearbook-(2423).html
    Find jacket attire in champagne, orchid, pink, lavender, or navy for girls
    of all ages.

  35. DonaldHusia dice:

    State-of-the-art slot machines, unique prize draws, a sophisticated restaurant http://mybiz04.ru

  36. DelmarerypE dice:

    https://nyupharm.com/# canadian pharmacy oxycodone

  37. Thanks for some other informative web site.

    Where else may I am getting that kind of information written in such an ideal way?
    I’ve a mission that I’m simply now working on, and I’ve been at the
    glance out for such information.

  38. ラブドール 女性 用The field marshal growsimpatient and sets to work himself and finds letters from the Emperorto Count T., Prince V.

  39. but did not alarm for she knew theirascible old gentleman would never lift a finger against his grandson,リアル ラブドールwhatever he might say to the contrary.

Responder a JosephDug Cancelar respuesta