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: 17,874

  1. Hello there, just became alert to your blog through Google, and found that it’s
    truly informative. I’m gonna watch out for brussels. I’ll be grateful
    if you continue this in future. Lots of people will be benefited from your writing.
    Cheers!

  2. It’s not my first time to pay a quick visit this site,
    i am browsing this website dailly and take pleasant facts from here everyday.

  3. エロ ロボットand had menageries under it as children,and rested tiredheads,

  4. Howdy very nice web site!! Man .. Excellent .. Superb .. I’ll bookmark your website
    and take the feeds also? I’m glad to find so many useful info here within the post, we need
    work out extra techniques in this regard, thank you for sharing.
    . . . . .

  5. 整復學徒 dice:

    https://digi635sa.netlify.app/research/digi635sa-(483)
    You can complement it in a quantity of ways, from a easy no-makeup look to bold purple lipstick paired with smokey eyes and a
    lot more.

  6. ラブドール エロcould resist it as little as a feather the hurricane,and must disappear bodily and at once.

  7. and who has been a servant! She’s as shy as shecan be,but pretty.コスプレ えろ

  8. ucokslot dice:

    Heya! I know this is sort of off-topic but I needed to ask.
    Does operating a well-established blog such as yours take a lot of work?

    I’m brand new to running a blog however I do write in my journal every day.
    I’d like to start a blog so I will be able to share my personal
    experience and feelings online. Please let me know if you have
    any kind of recommendations or tips for new aspiring
    bloggers. Thankyou!

  9. jrujpgr dice:

    To make the most out in the card, apply it every visit and make track of coupon restrictions and expiration dates. College pre-pharmacy study as little as being a day or two and will still pass the exam. There is really no difference between ordering drugs from your drugstore inside the United States than through a Canada pharmacy except for that price.
    #metoprolol

  10. continuously i used to read smaller posts which as
    well clear their motive, and that is also happening with this piece
    of writing which I am reading at this place.

  11. jiqeumxt dice:

    By giving your pharmacy the complete name of one’s medication you’ll be able to better safe guard your health. Insurance is confusing to begin with, plus it is constantly changing. This is often a common occurrence as January 1 kicks off a brand new year of pharmacy benefits and beneficiaries are stuck (with minor exceptions naturally called qualifying life events or QLEs) prior to the next open enrollment season in November.

  12. Hey! I knoѡ tһіs is kkind of off topic but I ᴡɑs wondering if у᧐u knew where I could find ɑ captcha plugin forr mʏ
    ϲomment form? I’m usung the sаme blog platform ɑs yoսrs and Ӏ’m having
    difficulty findring ᧐ne? Thɑnks a lot!

  13. m88 dice:

    Hi 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 skills so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

  14. jmqmzdz dice:

    The pharmaceutical industry especially cannot afford to allow its practitioners to delay or refuse treating clients due for the perceived use of any medical device, be it a pill or a syringe. College pre-pharmacy study as little as a day or two which enable it to still pass the exam. If possible try to use the identical pharmacy up to possible.

  15. Your means of describing the whole thing in this article is in fact
    pleasant, every one be capable of easily know it, Thanks a lot.

    My web-site ผักปลอดสารพิษ คืออะไร?

  16. soudmy dice:

    This online pharmacy is actually very helpful for old ailing patients and physically disabled persons. Screaming, yelling, demanding things, or becoming rude won’t help the situation. com or call 877 636 Rx – Rx – About The Founders – Sandy A Reese Rigg, RN, Rph – Susan Chin Jackson, RPh – Both graduated from St.

  17. My partner and I absolutely love your blog and find a lot of your post’s to
    be exactly I’m looking for. Would you offer guest
    writers to write content available for you? I wouldn’t mind writing a post or elaborating on most of
    the subjects you write in relation to here.
    Again, awesome web site!

  18. I do not even know how I ended up here, but I thought this post was
    great. I do not know who you are but certainly you’re going to a
    famous blogger if you aren’t already 😉
    Cheers!

  19. We’re a gaggle of volunteers and opening a brand new
    scheme in our community. Your website provided us with helpful info to work on.
    You have performed an impressive activity and our whole neighborhood
    shall be grateful to you.

Responder a ラブドール Cancelar respuesta