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: 114,747

  1. hm88 dice:

    Very nice post. I just stumbled upon your weblog and wished to mention that I’ve really enjoyed surfing around your blog posts.
    In any case I’ll be subscribing on your feed and I hope
    you write again very soon!

  2. Diplomi_qqSn dice:

    можно купить диплом медсестры [url=http://frei-diplom13.ru/]можно купить диплом медсестры[/url] .

  3. gay porn dice:

    I am regular visitor, how are you everybody? This article posted at
    this web page is truly fastidious.

  4. tips dice:

    With havin so much written content do you ever run into any issues of plagorism or copyright violation? My site has
    a lot of exclusive content I’ve either authored myself or outsourced but
    it appears a lot of it is popping it up all over the web
    without my authorization. Do you know any ways to help reduce content
    from being stolen? I’d genuinely appreciate it.

  5. ラブドール リアルpues quereis que hable: Quién os ha de librar de vn caso fortuito delante del Rey o del Papa? quién defender vuestra casa de vn hurto y de vna bateria? quién cruzar la cara al que os enojare o tocare al hilo de la saya? y para estas tales finezas se ha de sustentar y sufrir a vn hombre como y y no hazer caso de poquedades._–Lo que os sé dezir es que mal de cada dia me llega a negros dias.

  6. RichardHex dice:

    Has anybody tried safe Mexican pharmacies. I saw a verified site that lists affordable options: п»ї[url=https://polkcity.us.com/#]medicine mexico[/url]. Any thoughts?.

  7. Good effort overall! 馃檪 I appreciate your thorough approach….

  8. Teams在线 dice:

    Appreciate the clarity of explanation.! Could use a bit more detail, but overall solid..

  9. sc88 dice:

    Great site you have here but I was curious about if you knew of any forums that cover the same topics discussed here?
    I’d really like to be a part of online community where I can get responses from
    other experienced people that share the same
    interest. If you have any suggestions, please let me know.
    Thank you!

  10. 舒壓課程 dice:

    https://je-tal-marketing-967.lon1.digitaloceanspaces.com/research/je-marketing-(14).html
    Most important factor is that you’re comfortable and never going to over heat.

  11. ラブドール リアルprima? A esto nos truxo nuestra ventura? _–Pues qué pensauas,Cornelia? Quien a los tales se llega,

  12. Ralphkic dice:

    п»їJust now, I found a helpful resource about generic pills from India. The site discusses WHO-GMP protocols on prescriptions. For those interested in factory prices, visit this link: п»їhttps://kisawyer.us.com/# Online medicine order. Worth a read.

  13. 按摩課程 dice:

    https://fr-tour-3.atl1.digitaloceanspaces.com/research/star-(1459).html
    Plus, a blouson sleeve and a ruched neckline add to this silhouette’s romantic vibe.

  14. https://je-tal-marketing-945.lon1.digitaloceanspaces.com/research/je-marketing-(440).html
    As a mother, watching your son or daughter get married might be one of the joyful experiences in your life.

  15. hk lotto dice:

    I used to be able to find good information from your blog articles.

  16. 學按摩 dice:

    https://carlaklein8819.wixsite.com/carlaklein8819/post/____6
    Draw inspiration from mix-and-match bridesmaid attire by selecting a colour that coordinates with, but would not exactly match, the maids palette.

  17. que yo estaré alli esperando que vayas._–Pues por qué despues de comer,ラブドール リアル

  18. y tu hermosura me engolosina a ello.ラブドール 通販_–Pues está quedo y baste,

  19. 按摩教學 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20250904-2/research/je-marketing-(31).html
    Whether you have your heart on embroidery, embellishment, sequin, or ruched silk smoothness, golden attire look great in all kinds and designs.

  20. Thomastoorp dice:

    1хБет бонус код Активируйте бонус при регистрации на https://sk-holzfabrik.de/wp-content/pgs/le-code-promo-1xbet_bonus.html и заберите 32 500 рублей + бонус 100%, чтобы начать игру.

  21. Diplomi_jrSn dice:

    где можно купить диплом медсестры [url=https://www.frei-diplom13.ru]где можно купить диплом медсестры[/url] .

  22. エロ ラブドール_–Muy espantada y alegre me has puesto con lo que me has contado.Pero espántome de que no sólo no ouo más,

  23. Danielsnoni dice:

    п»їActually, I stumbled upon a useful guide concerning buying affordable antibiotics. It explains WHO-GMP protocols for ED medication. If anyone wants Trusted Indian sources, go here: п»ї[url=https://kisawyer.us.com/#]top 10 online pharmacy in india[/url]. Good info.

  24. Read more dice:

    I’d argue that the content relevance is even more critical now. We’ve seen perfectly good links get devalued just because the semantic match wasn’t tight enough.

  25. https://je-tal-marketing-980.lon1.digitaloceanspaces.com/research/je-marketing-(261).html
    You don’t need to put on shiny pink for instance, if the style of the day is extra organic and muted.

  26. Hi! I know this is somewhat off topic but I was wondering if you knew where
    I could get a captcha plugin for my comment form? I’m using the same blog platform
    as yours and I’m having trouble finding one? Thanks a lot!

  27. https://je-tal-marketing-953.lon1.digitaloceanspaces.com/research/je-marketing-(348).html
    If the marriage is more formal, count on to put on an extended gown or lengthy skirt.

  28. Oh my goodness! Awesome article dude! Many thanks,
    However I am having issues with your RSS.
    I don’t understand the reason why I cannot join it. Is there anyone else
    getting identical RSS problems? Anyone that knows the answer can you kindly respond?
    Thanks!!

  29. https://www.silverlongcare.com/news/2025/12/05/boginhall-51-2/
    Take this easy however fashionable knee-length wedding guest costume for the mother-of-the-bride.

  30. 按摩教學 dice:

    https://fr-asia-7.fra1.digitaloceanspaces.com/research/asia-business-(3453).html
    From affordable and stylish to designer and conventional, these are our favorite bow ties for weddings.

  31. Logistico hermano? todo tiene su tiempo y corre por sus spacios limitados,sin que baste saber,エロ ラブドール

Responder a alien creeps td epic tower defense hacks Cancelar respuesta