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: 85,657

  1. https://je–marketing-834.lon1.digitaloceanspaces.com/research/je-marketing-(438).html
    Her strapless and blush pink gown, with textured floral details and an embellished belt, had this mother smiling from ear to ear.

  2. Foresttat dice:

    MhfaPharm [url=http://mhfapharm.com/#]canadian pharmacy world[/url] MhfaPharm

  3. Your method of describing the whole thing in this paragraph
    is actually pleasant, all be capable of simply know it, Thanks a lot.

  4. melbet_glKa dice:

    melbet aplicație PC download [url=https://melbet5012.ru/]https://melbet5012.ru/[/url]

  5. ”So Tom unwound the thread from one of his needles,コスプレ アダルトand each boy prickedthe ball of his thumb and squeezed out a drop of blood.

  6. melbet official [url=https://v-bux.ru]https://v-bux.ru[/url] .

  7. Hey hey, steady pom ρi pi, maths rеmains one іn the leading subjects at Junior College, laying base fⲟr A-Level advanced math.

    Ιn аddition beyond institution amenities, focus with math tо prevent
    typical pitfalls ⅼike inattentive blunders іn tests.

    Catholic Junior College рrovides ɑ values-centered
    education rooted іn compassion and truth, producing ɑ welcoming community ᴡhere students thrive academically and
    spiritually. Ꮃith a concentrate on holistic development, tһe college ᥙses robust programs іn humanities
    and sciences, directed by caring coaches ԝho inspire ⅼong-lasting knowing.
    Ιtѕ vibrant co-curricular scene, including sports
    ɑnd arts, promotes team effort аnd self-discovery in a supportive atmosphere.
    Opportunities fоr social worқ and worldwide exchanges build compassion аnd international point of views among students.
    Alumni often become empathetic leaders, geared սp to make significant contributions to society.

    Dunman Нigh School Junior College distinguishes іtself tһrough its extraordinary bilingual education framework, ԝhich expertly merges Eastern cultural wisdom ѡith Western analytical
    methods, supporting trainees іnto flexible, culturally sensitive thinkers ԝho are adept аt bridging varied perspectives іn a globalized world.
    The school’s incorporated ѕix-year program mɑkes sure a smooth and enriched transition, including specialized
    curricula іn STEM fields with access to state-of-the-art lab ɑnd
    іn liberal arts ԝith immersive language immersion modules, ɑll developed t᧐ promote intellectual depth and ingenious analytical.
    Іn a nurturing and harmonious school environment,
    students actively tаke part in management roles, creative
    undertakings ⅼike argument cⅼubs аnd cultural festivals, аnd community tasks tһat
    boost tһeir social awareness аnd collective skills.
    The college’ѕ robust worldwide immersion efforts, consisting оf student exchanges ѡith partner schools іn Asia and Europe, aѕ weⅼl ɑs
    global competitions, offer hands-оn experiences tһat sharpen cross-cultural competencies аnd prespare students for thriving
    in multicultural settings. Ꮤith a constant record of exceptional academic
    performance, Dunman Ηigh School Junior College’s graduates safe and secure positionings іn premier universities globally, exhibiting tһe institution’s commitment tⲟ promoting
    scholasyic rigor, individual excellence, аnd a lifelong enthusiasm for learning.

    Goodness, no matter ᴡhether institution proves
    high-end, math acts lіke the decisive discipline іn developing
    poise іn numƅers.
    Aiyah, promary maths educates real-ԝorld ᥙses ѕuch as financial planning, so make surе your kid masters tһat
    rіght ƅeginning yߋung age.

    Aiyo, mіnus robust maths during Junior College, evеn prestigious
    school kids mɑy struggle аt next-level calculations, ѕo build tһіs noԝ leh.

    Hey hey, Singapore parents, math гemains ⲣrobably tһе highly іmportant primary topic, encouraging creativity іn problem-solving in innovative careers.

    Ꭰon’t mess around lah, pair а excellent Junior College plսs mathematics superiority іn оrder tо assure hiցh A Levels results рlus
    seamless chаnges.

    Α-level excellence opens volunteer abroad programs post-JC.

    Parents, kiasu mode ⲟn lah, robust primary
    mathematics гesults in superior science grasp аs wеll as construction goals.

    Wah, mathematics acts ⅼike the foundation pilar fοr primary learning, aiding kids іn dimensional analysis t᧐ building careers.

    my web ⲣage … Yuhua Secondary School Singapore

  8. бк мелбет бонусы [url=www.melbetbonusy.ru/]www.melbetbonusy.ru/[/url] .

  9. toto togel dice:

    Thanks for the marvelous posting! I really enjoyed reading it, you are a great author.I will be sure to bookmark
    your blog and will eventually come back very soon.
    I want to encourage you to ultimately continue
    your great work, have a nice weekend!

  10. melbet_caKa dice:

    sloturi melbet [url=melbet5012.ru]sloturi melbet[/url]

  11. https://je-tal-marketing-957.lon1.digitaloceanspaces.com/research/je-marketing-(334).html
    In years gone by, being mom of the bride has
    meant frumpy frocks and ill-fitting gown suits, but no more!

  12. Foresttat dice:

    Iso Pharm [url=http://isoindiapharm.com/#]india online pharmacy[/url] indianpharmacy com

  13. melbet_niKa dice:

    melbet verificare cont [url=www.melbet5012.ru]www.melbet5012.ru[/url]

  14. 舒壓課程 dice:

    https://jekyll.s3.us-east-005.backblazeb2.com/20251013-9/research/je-marketing-(82).html
    A neat shift costume that sits under the knee, a tailor-made jacket, and some kind of fussy fascinator or royal wedding-worthy hat.

  15. Shanel dice:

    I enjoy what you guys are usually up too. This sort of clever
    work and reporting! Keep up the fantastic works guys I’ve incorporated you guys to our blogroll.

  16. Very rapidly this website will be famous among all blog users, due to it’s good posts

  17. Roberterymn dice:

    Uva Pharm: Uva Pharm – phentermine in mexico pharmacy

  18. melbet bookmaker [url=https://v-bux.ru]https://v-bux.ru[/url] .

  19. Hunterunuse dice:

    Uva Pharm: farmacia online usa – mexican online pharmacies

  20. Hey there just wanted to give you a quick heads up.

    The words in your content seem to be running off the screen in Chrome.

    I’m not sure if this is a format issue or something to do
    with browser compatibility but I figured I’d post to let you know.

    The style and design look great though! Hope you get the issue solved soon. Kudos

  21. AndrewSmase dice:

    интернет [url=https://vodkabet-vbet.site]водка бэт[/url]

  22. melbet_kmKa dice:

    melbet instalare PC [url=https://melbet5012.ru/]melbet instalare PC[/url]

  23. melbet_zpKn dice:

    melbet casino [url=melbet5011.ru]melbet5011.ru[/url]

  24. melbet официальный сайт [url=http://v-bux.ru/]http://v-bux.ru/[/url] .

  25. Roberterymn dice:

    medication from mexico: Uva Pharm – UvaPharm

  26. JosephDesty dice:

    можно проверить ЗДЕСЬ [url=https://vodkabet-vbet.site/]vodkabet[/url]

  27. I really like your blog.. very nice colors & theme. Did you design this
    website yourself or did you hire someone to do it for
    you? Plz answer back as I’m looking to design my own blog and would like to find out where u got this
    from. thanks a lot

  28. Premier adult platforms offer secure and premium content for adults.
    Discover safe sites for a quality experience.

    My webpage – buy Levitra online

  29. RichardDycle dice:

    canada discount pharmacy https://uvapharm.xyz/# Uva Pharm

  30. whoah this weblog is wonderful i really like reading your articles.
    Stay up the good work! You recognize, lots of persons are hunting round for this information, you can aid them greatly.

    my homepage :: Massage Forum

  31. melbet_tcKa dice:

    melbet mirror funcțional [url=www.melbet5012.ru]www.melbet5012.ru[/url]

  32. Hunterunuse dice:

    Online medicine home delivery: indian pharmacy paypal – IsoIndiaPharm

  33. コスプレ アダルトClods were handy andthe air was full of them in a twinkling.They raged around Sid like ahailstorm; and before Aunt Polly could collect her surprised facultiesand sally to the rescue,

  34. Foresttat dice:

    Iso Pharm [url=https://isoindiapharm.xyz/#]Iso Pharm[/url] reputable indian pharmacies

Responder a Shanel Cancelar respuesta