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: 14,522

  1. I’m not sure wһere уоu are gettіng yоur info, however gⲟod topic.

    I needs to spend s᧐me time finding out muϲh mkre or figuring oᥙt mօre.

    Thanks for fantastic infofmation Ӏ was loooking for tһis іnformation for my mission.

  2. Hello everyone, it’s my first go to see at this
    website, and paragraph is actually fruitful designed for me, keep up
    posting these types of content.

  3. More articles like this would make the web richer.

  4. I’ve dabbled in astrology before but never knew how much insight
    your moon sign could give. This video made it all click.
    Thanks for breaking it down in such a simple and engaging way!

  5. Howdy! Do you know if they make any plugins to assist with Search
    Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very
    good results. If you know of any please share. Thank you!

  6. denticore buy DentiCore has actually made a big distinction in my dental health and wellness.

    My gum tissues are no much longer delicate, and my teeth feel more powerful.

    The fresh breath is a fantastic incentive. I very advise DentiCore to anyone
    looking to improve their oral health.

  7. You sleep, you get up, you could have espresso, you meet people, you’re employed a little bit, you see town a bit bit, you do issues, but it starts getting the identical in every metropolis after
    a few years. Eventually Razha begins squirming harder and grabs at Nadia’s legs,
    making an attempt to pry them apart. Basically, we had a really girly murder comedy, after which a man ran away with it and it became all
    about the man and his emotional needs. And this
    is Legion, who is, is, is what she’d name the
    man. And here is the promised Television Spotlight: Franklin (2024): I feel me and
    Sumana is perhaps the only individuals who’ve ever
    watched this. The scene at the tip where the con artists suppose they’re
    being hunted down by the scholars they cheated is a funny sequence.
    It’s all proper. I like how the Italian villagers are completely done
    with the war regardless of seemingly being unaffected by its
    ravages. But when you hear of people who find themselves sincere in identifying
    virtue with alternative and the use of impressions, don’t bother with whether or not they’re members of the same household, or associates who’ve run collectively a
    very long time; realizing this is sufficient to say with confidence that
    they’re associates, just as it’s enough to guage them truthful and dependable.

  8. Write more, thats all I have to say. Literally, it seems as though you relied on the
    video to make your point. You clearly know what youre
    talking about, why waste your intelligence on just posting videos to your blog when you could be giving us
    something informative to read?

  9. cfduzao dice:

    “(3) The Washington Post(4) commemorated the closing which has a write-up that contained just a bit of Schadenfreude. The pharmacist technician will need to have the prepared prescription, reviewed by a pharmacist, before dispensing or submitting the completed order to a patient or customer. The application deadline is within late April, however it is best to apply much sooner.
    http://www.essen-bei-krebs.de/ernaehrungstipp/deltasone-make-online-purchase

  10. toto12 link dice:

    Thanks for the marvelous posting! I actually enjoyed reading it, you happen to be a great
    author.I will always bookmark your blog and will often come back down the road.
    I want to encourage you to ultimately continue your great work,
    have a nice weekend!

  11. Really no matter if someone doesn’t know then its up to other visitors that they will help, so here it takes place.

  12. oygmpr dice:

    It is very important to note that does not every pharmacy technician receives a real low wage understanding that when in private pharmacies, it is probably that one gets to be a wage of $17 by the hour minimum. Fear not, with time you will know just how to handle different types of problems that may come about. If you get prescriptions from month to month make sure your pharmacy has your most up to date prescription insurance information.
    https://www.nadietah.ru/blog/133331-estonianyorkshire/468362-proventil-get-online

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

  14. brez drink dice:

    I’m not sure where you’re getting your information, but good topic.

    I needs to spend some time learning much more or understanding more.

    Thanks for magnificent info I was looking for this information for my
    mission.

  15. qeplate dice:

    An online pharmacy is very a help in the embarrassing scenario like this. Any reputable business online puts their shopping cart software on a secure server. This can be a common occurrence as January 1 kicks off a brand new year of pharmacy benefits and beneficiaries are kept in (with minor exceptions obviously called qualifying life events or QLEs) before the next open enrollment season in November.
    https://jeunescathos-bxl.org/fr/content/carafate-secure-online

  16. Howdy! I’m at wkrk surfinmg around your blog ffrom my neew iphone 4!
    Just wanted to say I love reading your blog and look forward to all your posts!
    Keep up the great work!

  17. Why viewers still make use of to read news
    papers when in this technological globe everything is presented on web?

  18. Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you! However, how could we
    communicate?

  19. My partner and I absolutely love your blog and find the majority of your post’s to be what precisely I’m looking for.
    Does one offer guest writers to write content for you? I wouldn’t mind
    producing a post or elaborating on a lot of the subjects you write about here.
    Again, awesome weblog!

  20. mjxmgks dice:

    By giving your pharmacy the complete name of one’s medication you’ll be able to better safe guard your health. Before taking any exams required by their state, they have to pass the Foreign Pharmacy Graduate Equivalency examination (FPGEE), Test of English like a Foreign Language (TOEFL) and Test of Spoken English (TSE) exams. This can be a common occurrence as January 1 kicks off a new year of pharmacy benefits and beneficiaries are locked in (with minor exceptions obviously called qualifying life events or QLEs) before next open enrollment season in November.
    http://co-smo.ru/baraholka/clonidine-shop-internet

Responder a qnvxjzso Cancelar respuesta