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: 32,371

  1. bk8 dice:

    Link exchange is nothing else but it is simply placing the
    other person’s webpage link on your page at suitable place and other person will also do similar in favor of you.

  2. mostbet_laki dice:

    mostbet ro yxatdan o tish [url=https://www.mostbet4166.ru]mostbet ro yxatdan o tish[/url]

  3. Hello There. I found your blog using msn. This
    is a really well written article. I will be sure to bookmark it and
    come back to read more of your useful info. Thanks for the post.
    I will certainly return.

  4. Sodo 66 dice:

    Do you have a spam problem on this website; I
    also am a blogger, and I was curious about your
    situation; many of us have created some nice methods and we are looking to swap methods with other folks,
    be sure to shoot me an e-mail if interested.

  5. профессиональное продвижение сайтов [url=https://poiskovoe-prodvizhenie-sajta-v-internete-moskva.ru/]poiskovoe-prodvizhenie-sajta-v-internete-moskva.ru[/url] .

  6. binance dice:

    Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/register?ref=P9L9FQKY

  7. How quickly it had all been done! He felt strangely calm,lovedolland walkingover to the window,

  8. mostbet_ewSa dice:

    мостбет служба поддержки [url=http://mostbet4165.ru/]мостбет служба поддержки[/url]

  9. MichaelGew dice:

    Создать презентацию с помощью нейросети можно по готовому тексту и теме. Используйте генератор презентаций, который за 2 минуты сделает ИИ презентацию с картинками и подходящим текстом. Попробуйте наш сервис по ссылке – [url=https://studzona.com/article/kakoj-chat-gpt-delaet-prezentacii]создать презентацию онлайн нейросеть[/url]

  10. せっくす どー るstruck with the magnificence of his own and horse,s trappings,

  11. ラブドール 最 高級and even to exclaim in an unknown language,asif he had laboured under some grievous affliction,

  12. технического аудита сайта [url=https://kompanii-zanimayushchiesya-prodvizheniem-sajtov.ru/]https://kompanii-zanimayushchiesya-prodvizheniem-sajtov.ru/[/url] .

  13. Great article! That is the type of info that are meant to be shared across the web.
    Disgrace on Google for no longer positioning this submit upper!
    Come on over and discuss with my website .

    Thanks =)

  14. как зайти на сайт мостбет [url=http://mostbet4131.ru/]http://mostbet4131.ru/[/url]

  15. that they were dead.Nothing further was to be expected of them,リアル えろ

  16. Anthonyevipt dice:

    Blue Pharma: livraison rapide et confidentielle – pilule bleue en ligne

  17. ラブドール 女性 用Thus fulfillingthe highest law thou shalt regain traces of the ancient dignity whichthou hast los ?He finished getting up,embraced and kissed with tearsof joy in his e looked round him,

  18. Jariorduc dice:

    Купить диплом университета!
    Наши специалисты предлагаютмаксимально быстро купить диплом, который выполняется на оригинальном бланке и заверен мокрыми печатями, штампами, подписями. Диплом пройдет любые проверки, даже при помощи специфических приборов. Достигайте своих целей максимально быстро с нашей компанией- [url=http://u90517ol.beget.tech/2025/08/09/kupit-diplom-ochnoy-ili-zaochnoy-formy.html/]u90517ol.beget.tech/2025/08/09/kupit-diplom-ochnoy-ili-zaochnoy-formy.html[/url]

  19. Brucesnuri dice:

    To claim this offer, simply enter the promo code during registration on the official 1xBet https://audiomack.com/vipbonuslist1

  20. What i do not realize is in reality how you’re now not really
    much more well-preferred than you may be now. You’re very intelligent.
    You already know therefore significantly on the subject of this matter,
    produced me in my opinion believe it from numerous varied angles.
    Its like women and men aren’t involved except it’s one thing to do with
    Lady gaga! Your personal stuffs great. At all times maintain it up!

  21. заказать анализ сайта [url=https://poiskovoe-prodvizhenie-moskva-professionalnoe.ru/]заказать анализ сайта[/url] .

  22. エッチ な コスプレune natured’artiste,ne la laissez pas manquer de ce qu’il lui faut.

  23. I like the valuable info you supply in your articles.
    I will bookmark your weblog and check once more right
    here regularly. I’m fairly sure I’ll learn many new stuff proper here!
    Good luck for the next!

  24. mostbet_obPa dice:

    banzaibet ro’yxatdan o’tish bonusi [url=https://www.mostbet4169.ru]banzaibet ro’yxatdan o’tish bonusi[/url]

  25. Kennethdweks dice:

    acheter kamagra pas cher livraison rapide [url=https://pharmalibrefrance.com/#]kamagra gel oral livraison discrete France[/url] Pharma Libre

  26. Normally I do not read post on blogs, but I wish to say that this write-up very forced
    me to try and do so! Your writing style has been surprised me.
    Thank you, quite nice post.

  27. Event Balap dice:

    After going over a handful of the articles on your site, I truly appreciate your way of blogging.
    I added it to my bookmark site list and will be checking back in the near future.
    Take a look at my web site as well and let me know what you think.

    https://tunnellracing.com/

  28. internetmix dice:

    интернет по адресу
    inernetvkvartiru-msk006.ru
    проверить интернет по адресу

  29. 樂威壯 dice:

    excellent issues altogether, you simply gained a logo new reader.

    What would you recommend about your put up that you made a few days in the past?
    Any certain?

  30. ??Mais Swann n’est pas bête,je suis certaine qu’il a apprécié.エッチ コスプレ

  31. I read this article completely regarding the comparison of latest
    and preceding technologies, it’s remarkable article.

  32. エッチ な コスプレqui les embrumait tout entières,qu’en suivant,

  33. Kennethdweks dice:

    BluePharma [url=http://bluepharmafrance.com/#]viagra generique efficace[/url] Viagra homme sans ordonnance belgique

  34. I was able to find good advice from your blog posts.

  35. Anthonyevipt dice:

    pharmacie en ligne: pharmacie en ligne sans ordonnance – Pharmacie sans ordonnance

  36. seo network [url=https://poiskovoe-seo-v-moskve.ru]https://poiskovoe-seo-v-moskve.ru[/url] .

  37. вызвать психиатра на дом в москве
    psikhiatr-moskva006.ru
    частный психиатр на дом

  38. аудит продвижения сайта [url=http://www.internet-agentstvo-prodvizhenie-sajtov-seo.ru]аудит продвижения сайта[/url] .

  39. mostbet_azSi dice:

    mistbet [url=https://mostbet4168.ru]https://mostbet4168.ru[/url]

  40. 188bet dice:

    Hi to every one, it’s really a fastidious for me to pay a visit this website, it contains valuable Information.

  41. фабрика по производству одежды [url=https://www.nitkapro.ru]https://www.nitkapro.ru[/url] .

  42. Spravkiimf dice:

    Для владельцев автомобилей в Рыбинске — сервисный центр “АвтоАйболит” предлагает проверку, сервисное обслуживание, обслуживание двигателя, трансмиссии, шасси и электрооборудования (включая замену ремня от 800 ?) на профессиональном техническом оснащении. [url=https://avtoaibolit-76.ru]https://avtoaibolit-76.ru[/url] Профессиональные автомастера ставят оригинальные комплектующие и гарантируют надёжный сервис с подтверждением качества. Ознакомьтесь с деталями — автосервис Рыбинск ждёт вас на сайте.

  43. QQ88 dice:

    Link exchange is nothing else however it is just placing the other person’s web site link on your page at proper place and other person will also do similar in support of you.

  44. Thank you, I have just been looking for information about this
    subject for ages and yours is the best I have found out
    till now. But, what concerning the bottom line?
    Are you positive about the source?

Agrega tu comenatio