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: 19,727

  1. lucky cola dice:

    Looking for a great way to start your online gaming experience? Register as a new user at betx24 and instantly claim your $100 bonus! It’s a fast and simple process, and once you log in, you can begin using your bonus on your favorite games. Don’t miss this opportunity to boost your chances of winning right from the start!

  2. basket168 dice:

    Hey there are using WordPress for your blog platform? I’m new to the blog world
    but I’m trying to get started and create my own. Do you require any html coding expertise to make your own blog?
    Any help would be greatly appreciated!

  3. bsme at dice:

    Very nice post. I just stumbled upon your weblog and wanted to
    say that I have really enjoyed browsing your blog posts.
    In any case I will be subscribing to your rss feed and I hope you write
    again soon!

  4. booi dice:

    My family members always say that I am wasting my time here at net, but I know I am getting know-how daily by reading thes pleasant articles or reviews.

  5. This is the perfect webpage for anyone who wishes to understand this topic.
    You know a whole lot its almost hard to argue with you
    (not that I actually will need to…HaHa). You certainly put a new spin on a
    topic that has been discussed for years. Wonderful stuff, just great!

  6. Arialief dice:

    It is perfect time to make some plans for the future and
    it is time to be happy. I have read this post and if I could I desire to suggest
    you few interesting things or suggestions. Maybe you could write next articles
    referring to this article. I want to read even more things about it!

  7. zlibabry dice:

    Thank you for the auspicious writeup. It in fact was a amusement account it.

    Look advanced to far added agreeable from you! By the way, how could we communicate?

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

  9. kmspico dice:

    Good day! I could have sworn I’ve been to this website before but after
    checking through some of the post I realized it’s new to me.
    Nonetheless, I’m definitely happy I found it and I’ll be book-marking and
    checking back often!

  10. Hi great blog! Does running a blog like this take a massive amount work?
    I’ve no understanding of programming but I was hoping to start
    my own blog soon. Anyways, should you have any suggestions or tips
    for new blog owners please share. I understand this is off subject but
    I simply had to ask. Many thanks!

  11. aceph dice:

    Ready to play at haha777? Register as a new user and get a $100 bonus instantly! The registration process is simple, and once you log in, you can start using your bonus to explore a variety of games. From slots to live sports betting, the bonus will help you get the most out of your experience. Register now and start playing!

  12. Just want to say your article is as surprising. The clearness in your post is simply
    cool and i could assume you are an expert on this subject.
    Well with your permission allow me to grab your RSS feed to
    keep up to date with forthcoming post. Thanks a million and please continue the rewarding work.

  13. bvnkvxy dice:

    CVS Pharmacy must count on prescription drug sales to remain in business, but Wal-Mart doesn’t have to add a tremendous markup to the prescription medications they sell. ” A good response to this just isn’t “I’m trying to find a job. Veri – Sign and Scan – Alert Hacker Safe will be the two names you have to be looking out for as well since these names will proclaim that these websites feel safe for paying online.
    Buy vitamins and supplements online

  14. This site truly has all the info I needed concerning this subject and didn’t know who to ask.

    Feel free to visit my blog post :: ผักไฮโดรโปนิกส์

  15. mgarmgxq dice:

    The answering services company company later changed its name to e – Telecare Global Soltions in 2004. Insurance is confusing to start with, and it also is constantly changing. The massive surge in people online for many of their shopping and everyday needs has led to many pharmacies having a website built, where they provide numerous services which may help you avoid making unnecessary trips to the local pharmacy.
    Prescription drugs online

  16. evostoto dice:

    I just like the helpful information you supply in your
    articles. I’ll bookmark your blog and test once more here
    frequently. I’m reasonably certain I will be informed plenty of new stuff proper right
    here! Good luck for the following!

  17. bjxcldwo dice:

    Most physiologists required a Ph – D degree and licensing. Any reputable online business puts their shopping cart solution on a secure server. The massive surge in people using the internet for many of their shopping and daily needs has triggered many pharmacies having an online site built, where they provide numerous services which can help you avoid making unnecessary trips to any local pharmacy.
    Prescription transfer online

  18. v9bet dice:

    Thanks very nice blog!

  19. pljgma dice:

    The pharmaceutical industry especially do not want to allow its practitioners to delay or refuse treatment of clients due on the perceived using any medical device, it could be a pill or possibly a syringe. The above image shows which a secure protocol ( is being used through the fraudster. So like a buyer, you may need to identify a geniune online pharmacy that is certainly licensed and sells only Food and Drug Administration (FDA) approved medicines.
    Safe online pharmacy

  20. I was suggested this website by my cousin. I am not sure whether this post
    is written by him as nobody else know such detailed about my difficulty.
    You’re wonderful! Thanks!

  21. ufoulk dice:

    “(3) The Washington Post(4) commemorated the closing with a write-up that contained slightly of Schadenfreude. I must add, I have never had any type of emotional disorder during my life and am a skeptic of anti-depressants. If you get prescriptions on a monthly basis make sure your pharmacy has your most up to date prescription insurance information.
    Buy vitamins and supplements online

  22. evostoto dice:

    Thanks for a marvelous posting! I certainly enjoyed reading it, you might be a
    great author.I will ensure that I bookmark your blog and will come back in the foreseeable future.
    I want to encourage you to continue your great posts, have a nice morning!

  23. bandar slot dice:

    Hello to all, how is everything, I think every one is getting more from this site,
    and your views are nice in support of new people.

  24. Hey there, You have done a fantastic job. I’ll certainly digg it and personally suggest to
    my friends. I’m confident they’ll be benefited from this site.

  25. Next year there were the “Claims of Labour” and “Guizot,人形 エロ” andin 1847 his articles on Irish affairs in the Morning Chronicle.

  26. bmrtztip dice:

    While there is often a small chance you could get laid off (by way of example, if the chain supermarket closes some stores) you must not have much problem finding another job. When all factors are thought, however, I would must say the prices charged at CVS Pharmacy and Rite Aid Pharmacy are quite comparable. Make sure that you take the time to ask about a more affordable version in order that they will check the list.
    Online pharmacy for pet medications

Responder a CryonexPro Cancelar respuesta