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: 25,951

  1. Excateftgaf dice:

    1win promo code +500% on deposit: xr1win25

    1win registration: https://lkpq.cc/c3402d

  2. Buckley said in the New York _Christian Advocate_ of March 15th,ストッキング えろ1888:“The question of eligibility turns,

  3. Roccopully dice:

    Indian Meds One: indianpharmacy com – india pharmacy mail order

  4. вывод из запоя
    vivod-iz-zapoya-krasnodar008.ru
    экстренный вывод из запоя

  5. Is it safe to sell crypto for cash in Madrid?

  6. elaborated the ideathat the chief function of the state is educational; that in particularthe regeneration of Germany is to be accomplished by an educationcarried on in the interests of the state,ドレス エロand that the privateindividual is of necessity an egoistic,

  7. webpage dice:

    Nice weblog right here! Also your website loads up fast!
    What host are you the usage of? Can I get your associate hyperlink for your host?
    I wish my site loaded up as quickly as yours
    lol

  8. 1win_kg_gbsl dice:

    как потратить бонусы на спорт в 1вин [url=https://www.1win1171.ru]https://www.1win1171.ru[/url]

  9. Jamesbet dice:

    top 10 online pharmacy in india: Indian Meds One – Indian Meds One

  10. Justinstync dice:

    Mexican Pharmacy Hub: pharmacies in mexico that ship to usa – Mexican Pharmacy Hub

  11. лечение запоя
    vivod-iz-zapoya-orenburg006.ru
    вывод из запоя круглосуточно оренбург

  12. Roccopully dice:

    Indian Meds One: online shopping pharmacy india – Indian Meds One

  13. I was curious if you ever thought of changing the page layout of your website?
    Its very well written; I love what youve got to say.

    But maybe you could a little more in the way of content so people could connect
    with it better. Youve got an awful lot of text for only having one or 2 pictures.
    Maybe you could space it out better?

  14. Pretty section of content. I just stumbled upon your website and in accession capital to assert that I get in fact
    enjoyed account your blog posts. Anyway I’ll be subscribing to your augment
    and even I achievement you access consistently fast.

  15. Chet dice:

    Bangkok At Night Time 40 Issues To Do + Phhotographs 2024 link –
    Chet

  16. Hi this is kind of of off topic but I was wondering if
    blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I wanted to get guidance from
    someone with experience. Any help would be greatly appreciated!

  17. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  18. Hey! I could have sworn I’ve been to this blog before but after browsing through some of the post
    I realized it’s new to me. Anyhow, I’m definitely glad I found
    it and I’ll be bookmarking and checking back frequently!

  19. Link UNOGG dice:

    whoah this weblog is magnificent i really like
    reading your posts. Stay up the good work! You know, many individuals are looking round for
    this information, you could help them greatly.

  20. I am sure this paragraph has touched all the internet viewers, its really really fastidious post
    on building up new website.

  21. 1win_pypi dice:

    1 вин скачать приложение [url=https://www.1win1166.ru]https://www.1win1166.ru[/url]

  22. slot 4d dice:

    Pretty portion of content. I simply stumbled upon your website and
    in accession capital to claim that I get in fact enjoyed account
    your blog posts. Any way I will be subscribing for your feeds or even I success
    you get entry to constantly quickly.

  23. Howdy! This post couldn’t be written much better! Looking at this post reminds me of my previous roommate!
    He continually kept preaching about this. I most certainly will send this article to him.
    Fairly certain he will have a good read. Thank you for sharing!

  24. Milanoxync dice:

    Rubber seal for Indesit refrigerator for domestic [url=https://www.wildberries.ru/catalog/180109943/detail.aspx]https://www.wildberries.ru/catalog/180109943/detail.aspx[/url]

  25. Houstonmib dice:

    legit mexican pharmacy for hair loss pills [url=http://mexicanpharmacyhub.com/#]Mexican Pharmacy Hub[/url] finasteride mexico pharmacy

  26. Jamesbet dice:

    Indian Meds One: Indian Meds One – Indian Meds One

  27. Best way to cash out Tether in Italy

  28. Joanne dice:

    London Nightlife: A Inforrmation To The City’s Finest Bars And Clubs
    Sixes Cricket Blog blog (Joanne)

  29. alexistogel dice:

    Thank you for the good writeup. It actually was once
    a enjoyment account it. Glance complex to more delivered agreeable
    from you! By the way, how can we keep up a correspondence?

  30. Melvina dice:

    London Nightlife: A Information To Town’s Finest Bars And Golf Equipment Sixes Cricket Blog blog (Melvina)

  31. Westminster Reveals Plans For 3 Late-night Lisure Zonees In Central London link – lowery-filtenborg.federatedjournals.com

  32. Brucekak dice:

    https://mexicanpharmacyhub.shop/# buying prescription drugs in mexico

  33. Sleep Lean dice:

    Sleep Lean is getting great feedback for its dual focus on promoting deep, restful
    sleep and supporting healthy weight management. Many users mention waking up more refreshed, having
    better energy, and noticing fewer late-night cravings.

    It’s a smart option for those wanting to improve sleep quality while
    boosting overall wellness.

  34. Houstonmib dice:

    mexican pharmacy klonopin [url=http://medidirectusa.com/#]MediDirect USA[/url] MediDirect USA

Responder a Jamesbet Cancelar respuesta