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: 28,863

  1. Do you mind if I quote a few of your articles as long as
    I provide credit and sources back to your blog? My blog is in the exact same area of
    interest as yours and my visitors would certainly benefit
    from some of the information you provide here. Please let me
    know if this okay with you. Many thanks!

  2. 按摩課程 dice:

    https://je-tall-marketing-815.lon1.digitaloceanspaces.com/research/je-marketing-(157).html
    This two-piece silhouette type flows superbly over the body and has a v-shaped
    again opening that closes with a concealed zipper.

  3. 188bet dice:

    Hmm is anyone else having problems with the pictures
    on this blog loading? I’m trying to figure out if its a problem
    on my end or if it’s the blog. Any feedback would be greatly appreciated.

  4. диплом занесен в реестр купить [url=www.arus-diplom35.ru/]диплом занесен в реестр купить[/url] .

  5. togel online dice:

    Hi there, I log on to your blogs daily. Your story-telling style is awesome,
    keep up the good work!

  6. Having read this I believed it was extremely enlightening.
    I appreciate you finding the time and energy to put this information together.
    I once again find myself personally spending
    way too much time both reading and commenting. But so what, it was still worthwhile!

  7. I’m amazed, I have to admit. Seldom do I encounter a blog that’s
    equally educative and engaging, and let me tell you, you have hit the nail on the head.
    The issue is something which not enough folks are speaking intelligently about.
    I am very happy I stumbled across this during my hunt for something concerning this.

  8. safest way to sell crypto in Texas

  9. Wayneceals dice:

    FertiCare Online: FertiCare Online – can i buy generic clomid without insurance

  10. Diplomi_qgea dice:

    купить аттестат за 11 класс 2008 [url=http://arus-diplom23.ru]купить аттестат за 11 класс 2008[/url] .

  11. California cryptocurrency laws 2025

  12. узи аппараты цена [url=https://kupit-uzi-apparat26.ru/]kupit-uzi-apparat26.ru[/url] .

  13. Chapter 4It had been arranged that Arbuthnot and Wilkin travellingtogether,should arrive at San Salvatore on the evening of March31stthe owner,ダッチワイフ エロ

  14. Michaeladhet dice:

    TrustedMeds Direct [url=https://trustedmedsdirect.shop/#]amoxicillin pharmacy price[/url] TrustedMeds Direct

  15. Diplomi_jcSi dice:

    купить диплом в хмельницком [url=http://educ-ua1.ru]http://educ-ua1.ru[/url] .

  16. jepang88 dice:

    Thank you, I’ve just been looking for information about this subject for ages and yours
    is the greatest I have discovered till now. However,
    what about the bottom line? Are you positive concerning the supply?

  17. krkndarkne dice:

    [url=https://krkns-darknets.com]Кракен зеркало[/url] — Чтобы всегда иметь доступ, сохраняйте рабочее кракен зеркало. Эти альтернативные ссылки открывают маркетплейс даже при блокировках и помогают безопасно работать в даркнете.

  18. safest way to sell crypto in California

  19. Truly no matter if someone doesn’t understand afterward its up to other viewers that
    they will help, so here it occurs.

  20. as well as I could,in my ownheart the anxiety that preyed there and entered with seeming earnestnessinto the plans although they might only serve as thedecorations of my tragedy.ラブドール エロ

  21. Xrumerbox dice:

    Добрый день!
    Долго думал как поднять сайт и свои проекты и нарастить TF trust flow и узнал от крутых seo,
    энтузиастов ребят, именно они разработали недорогой и главное лучший прогон Хрумером – https://www.bing.com/search?q=bullet+%D0%BF%D1%80%D0%BE%D0%B3%D0%BE%D0%BD
    Линкбилдинг цена зависит от выбранной стратегии. Крауд маркетинг линкбилдинг улучшает DR сайта. Линкбилдинг что это такое простыми словами объясняет новичкам. Линкбилдинг это простыми словами становится доступным. Линкбилдинг стоимость варьируется по объему работ.
    орел продвижение сайтов, seo маяк, линкбилдинг для англоязычного сайта
    Как поднять DR Ahrefs, проверить сео, seo анализ работы
    !!Удачи и роста в топах!!

  22. as well as for your own,that you will never for one instant letthat idea enter your mind! There is nothing so dangerou sofascinating,高級 ダッチワイフ

  23. Good post. I absolutely appreciate this site.
    Continue the good work!

  24. not in any very high glee at having been previouslyroused from his warm hammock at a most unseasonable hour,cameshambling along from his galley,ラブドール おすすめ

  25. The examples really helped. 👉 Watch Live Tv online in HD. Stream breaking news, sports, and top shows anytime, anywhere with fast and reliable live streaming.

  26. Frankspatt dice:

    5 prednisone in mexico: SteroidCare Pharmacy – purchase prednisone 10mg

  27. The Eggs Factory helps you build your own backyard chicken coop quickly and easily.

Responder a School of the Arts Cancelar respuesta