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: 113,194

  1. RobertScede dice:

    интернет [url=https://captcha-krab2.cc/]krab2.cc[/url]

  2. Marvelous, what a website it is! This website presents valuable facts to
    us, keep it up.

  3. Your style is so unique compared to other people I have read stuff from.
    Many thanks for posting when you have the opportunity, Guess I will just book mark this site.

  4. Great post. I was checking continuously this weblog and I’m inspired!
    Extremely useful information particularly
    the final part 🙂 I maintain such information much. I was seeking this
    certain info for a long time. Thank you and good luck.

  5. 1win casino официальный сайт, ван вин предлагает развлечения.

    Check out my site: https://1win-cum.buzz/

  6. Thank you for any other excellent article. The place else may just anybody get that type of information in such
    an ideal manner of writing? I have a presentation next week, and I’m on the search for
    such information.

  7. Magnificent beat ! I wish to apprentice while you amend your
    web site, how could i subscribe for a blog site? The account aided
    me a appropriate deal. I had been a little bit familiar
    of this your broadcast offered shiny transparent idea

  8. Its like you read my mind! You appear to know a lot about this,
    like you wrote the book in it or something.
    I think that you can do with some pics to drive the message
    home a little bit, but other than that, this is fantastic
    blog. A fantastic read. I’ll certainly be back. http://square.la.coocan.jp/01cgi/izakayadengon4/bbs17/bbs17.cgi

  9. webpage dice:

    I’ve learn a few just right stuff here. Definitely
    worth bookmarking for revisiting. I surprise how a lot
    effort you place to create such a great informative web site.

  10. RichardHex dice:

    Has anybody tried buying generic pills online. I ran into a cool archive that ranks best pharmacies: п»ї[url=https://polkcity.us.com/#]the purple pharmacy mexico[/url]. Seems useful..

  11. LloydRop dice:

    Stop overpaying and save money on prescriptions, you should try checking this resource. It reveals shipping costs. Best prices found here: п»їpolkcity.us.com.

  12. Oh my goodness! Amazing article dude! Thank you so much,
    However I am experiencing issues with your RSS. I don’t know why I can’t join it.

    Is there anybody else getting the same RSS problems?
    Anyone who knows the answer can you kindly respond?

    Thanx!!

  13. RichardHex dice:

    FYI, an important overview on buying meds safely. It explains how to avoid scams for ED meds. Source: п»ї[url=https://polkcity.us.com/#]official site[/url].

  14. I just like the valuable information you supply to your
    articles. I’ll bookmark your blog and check once more here frequently.
    I’m fairly sure I’ll be informed a lot of new stuff proper here!
    Best of luck for the following!

  15. Fırat Engin bahis siteleri, Casino Siteleri Nargül Engin,
    Slot Siteleri Hüseyin Engin, Deneme Bonusu Veren Siteler Ahmet Engin, Mehdi Deneme Bonusu, Mehdi Deneme bonusu veren siteler

  16. Geraldwix dice:

    можно проверить ЗДЕСЬ [url=https://deally.me/ru/category/products]где продать игровой аккаунт[/url]

  17. Ralphkic dice:

    п»їJust now, I came across an informative report regarding ordering meds from India. It covers WHO-GMP protocols when buying antibiotics. For those interested in Trusted Indian sources, read this: п»їhttps://kisawyer.us.com/# top 10 online pharmacy in india. Worth a read.

  18. Hi! Do you use Twitter? I’d like to follow you if that would be ok.
    I’m definitely enjoying your blog and look forward to new
    updates.

  19. What’s up, everything is going fine here and ofcourse every one is sharing data, that’s actually
    good, keep up writing.

  20. Hi there! Do you know if they make any plugins to safeguard against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on.
    Any suggestions?

  21. If some one wants to be updated with most recent technologies
    then he must be visit this web site and be up to date everyday.

  22. I will right away clutch your rss feed as I can’t in finding
    your email subscription link or e-newsletter service.
    Do you’ve any? Kindly let me recognise in order that I could subscribe.

    Thanks.

    Here is my blog post: tadalafil and sildenafil together

  23. JTime dice:

    Whoa a good deal of wonderful information.

  24. Article writing is also a fun, if you be familiar with afterward you can write otherwise
    it is complex to write.

  25. Danielsnoni dice:

    п»їLately, I stumbled upon a helpful report concerning cheap Indian generics. It explains WHO-GMP protocols when buying antibiotics. For those interested in factory prices, visit this link: п»їhttps://kisawyer.us.com/# indian pharmacy paypal. Worth a read.

  26. LloydRop dice:

    Just wanted to share, a helpful guide on FDA equivalent standards. It explains pricing differences for ED meds. Source: п»їhttps://polkcity.us.com/# mexican pharmacies near me.

  27. RichardHex dice:

    Has anybody tried ordering meds from Mexico. I ran into a decent archive that compares trusted vendors: п»їpolkcity.us.com. Check it out.

Responder a Michaelroyar Cancelar respuesta