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: 15,003

  1. Very nice blog post. I absolutely appreciate this website.
    Thanks!

  2. Henry Harris dice:

    I’ll certainly be back for more.

  3. I gained useful knowledge from this.

  4. Thanks for creating this. It’s top quality.

  5. I am regular reader, how are you everybody? This article posted at this website is truly fastidious.

  6. If you desire to get a good deal from this
    post then you have to apply these strategies to your won website.

  7. The depth in this write-up is praiseworthy.

  8. Thank you for the auspicious writeup. It in fact was a
    entertainment account it. Look complex to more delivered agreeable from you!
    By the way, how can we keep up a correspondence?

  9. Hmm it looks like your site ate my first comment (it was extremely long)
    so I guess I’ll just sum it up what I submitted and say, I’m thoroughly
    enjoying your blog. I as well am an aspiring blog writer but I’m still new to everything.
    Do you have any tips and hints for first-time blog writers?
    I’d really appreciate it.

  10. rklwrph dice:

    The certification does play an important role in making a rewarding career being a PT because it helps to produce one more qualified after they apply for promotion. You may additionally check out “Physician Assistant Is a Top Healthcare Career. There is actually no difference between ordering drugs from the drugstore within the United States than through a Canada pharmacy except for the price.
    http://strada.bielsko.pl/1_lubelskie/forum/4-zadaj-pytanie/215202-evista-make-an-online-purchase

  11. Ian Evans dice:

    This article is fantastic.

  12. George Jones dice:

    I found new insight from this.

  13. I genuinely enjoyed the manner this was laid out.

  14. ladangwd dice:

    Yes! Finally someone writes about ladangwd.

  15. read more dice:

    Definitely believe that which you said. Your favorite reason seemed to be on the internet
    the easiest thing to be aware of. I say to you, I certainly get
    irked while people consider worries that they just do
    not know about. You managed to hit the nail upon the top as well as defined out the whole
    thing without having side-effects , people could take a
    signal. Will probably be back to get more. Thanks

  16. codkedpc dice:

    The pharmaceutical industry especially cannot afford to allow its practitioners to delay or refuse treatments for clients due towards the perceived utilization of any medical device, maybe it’s a pill or even a syringe. The above image shows that a secure protocol ( will be used through the fraudster. They can also check with doctors to authorize refills, and enter drug information into the computer.
    https://www.fr.adrenal-fatigue.de/node/5275

  17. I gained useful knowledge from this.

  18. Greetings! I know this is kinda off topic however I’d figured I’d ask.

    Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa?
    My blog addresses a lot of the same topics as yours and I
    feel we could greatly benefit from each other.

    If you are interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Superb blog by the way!

  19. David Hall dice:

    I’ll certainly be back for more.

  20. I truly admired the way this was explained.

  21. hfkomrd dice:

    We were going towards the big city to find out a doctor, so it made sense. When all factors are believed, however, I would need to say how the prices charged at CVS Pharmacy and Rite Aid Pharmacy are very comparable. In order to register while using GPh – C, pharmacy technicians must obtain sometimes a 3 Level 3 qualifications.
    https://globalro.org/node/3905

  22. Hello! 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 recommendations?

  23. Keren banget isi kontennya! Saya tidak menyangka
    uang Rp11,8 triliun bisa disita dan disandingkan dengan belanja Manchester United sejak Ten Hag melatih.

    Gaya penulisannya ringan tapi informatif. Saya jadi ingat sama pasang Mix Parlay yang kadang gede
    juga.

    Saya biasa ambil prediksi dari situs taruhan bola resmi untuk Mix Parlay.

    Artikel semacam ini jarang dibahas, jadi sangat relevan.

    Terus update ya!

  24. James Jones dice:

    Thanks for posting. It’s excellent.

  25. James Lewis dice:

    This submission is informative.

  26. The clarity in this piece is commendable.

  27. jevaolxv dice:

    The pharmaceutical industry especially cannot afford to allow its practitioners to delay or refuse treating clients due towards the perceived usage of any medical device, be it a pill or even a syringe. The above image shows that the secure protocol ( has been used with the fraudster. If possible try to use the identical pharmacy just as much as possible.
    http://co-smo.ru/baraholka/robaxin-shop-internet

  28. I absolutely appreciated the style this was written.

  29. More posts like this would make the internet more useful.

  30. anxvrveh dice:

    While there can be a small chance you could get laid off (for instance, if your chain supermarket closes some stores) you must not have much problem finding another job. ” A good a reaction to this is just not “I’m looking for a job. Veri – Sign and Scan – Alert Hacker Safe would be the two names you have to be looking out for as well since these names will proclaim why these websites feel safe for paying online.
    http://aw-bekkers.be/node/3106

  31. Thanks for posting. It’s excellent.

  32. Hello I am so thrilled I found your blog page, I really found you by
    error, while I was looking on Yahoo for something else, Regardless I am here now and would
    just like to say thank you for a marvelous post and a all round thrilling
    blog (I also love the theme/design), I don’t
    have time to go through it all at the moment but I have bookmarked it and also
    added your RSS feeds, so when I have time I will be back to read
    a great deal more, Please do keep up the great work.

  33. Great weblog right here! Additionally your website loads up very fast!
    What host are you using? Can I am getting your associate hyperlink for
    your host? I desire my web site loaded up as fast as yours lol

  34. This is the kind of information I enjoy reading.

  35. The thoroughness in this piece is noteworthy.

  36. I’ll certainly recommend this.

  37. zlzxxty dice:

    The call center company later changed its name to e – Telecare Global Soltions in 2004. Insurance is confusing to start with, and it also is constantly changing. An person that finds work within this profession can certainly be a radiology technician if his competency qualifies him to complete work using x-ray, ultra-sound, CAT or ECG equipment that gives the doctors with scanned images how the latter uses as bases because of their diagnoses.
    https://www.intellectualpedia.org/noterafting-keflex-purchase-web

Responder a Simon Francis Jackson Cancelar respuesta