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,793

  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

  27. The longevity entrepreneur, who is 47 but claims to have the ‘penile health’ of a
    22 year old, says monitoring and measuring night-time erections is one of the most important markers of men’s health.

  28. constantly i used to read smaller articles which also clear their
    motive, and that is also happening with this
    article which I am reading at this time.

  29. Thanks to my father who stated to me regarding this web site, this website is really awesome.

  30. Sleep Lean dice:

    Great blog here! Also your web site loads up fast!
    What host are you using? Can I get your affiliate link to
    your host? I wish my site loaded up as fast
    as yours lol

  31. 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 throw away your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?

  32. an u tale lyrica and viagra together

  33. I blog quite often and I really appreciate your information. Your article has
    really peaked my interest. I’m going to bookmark
    your blog and keep checking for new details
    about once a week. I subscribed to your Feed
    as well.

  34. free sex dice:

    Great post. I was checking constantly this blog and I’m impressed!

    Very useful info specifically the last part 🙂 I care for such information much.

    I was looking for this certain info for a very long time.
    Thank you and best of luck.

  35. This article will assist the internet visitors for setting up new weblog or even a weblog from start to end.

  36. mm99.black/ dice:

    Have you ever thought about including a little bit more than just your articles?
    I mean, what you say is important and everything. But think of if you
    added some great images or videos to give your posts more,
    “pop”! Your content is excellent but with images and clips, this site could certainly be one of the most beneficial in its field.
    Fantastic blog!

  37. website dice:

    I got this web page from my friend who shared with me on the topic of this website and now this time I
    am visiting this web page and reading very informative articles
    at this time.

  38. Venoplus 8 dice:

    hi!,I like your writing so so much! proportion we keep
    in touch extra approximately your article on AOL? I need an expert on this space to unravel my
    problem. May be that is you! Having a look forward to see you.

  39. m88 dice:

    You actually make it seem so easy with your presentation but I find this matter
    to be actually something that I think I would never understand.

    It seems too complex and very broad for me. I’m looking forward
    for your next post, I’ll try to get the hang of it!

  40. egxetr dice:

    Location and the sort of employer would be the final factors in determining just how much pharmacists make. The pharmacist technician should have the prepared prescription, reviewed with a pharmacist, before dispensing or submitting the completed order to some patient or customer. They are also responsible for inspecting the operational treatments for dispensary and manufacturing units and providing a platform to further improve the pharmacists’ role to prescribe medicine independently.
    Online pharmacy reviews

  41. constantly i used to read smaller articles or reviews that
    as well clear their motive, and that is also happening with
    this paragraph which I am reading here.

  42. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each
    time a comment is added I get four emails with the same comment.
    Is there any way you can remove me from that service?
    Cheers!

  43. imwlzsyx dice:

    “(3) The Washington Post(4) commemorated the closing which has a write-up that contained slightly of Schadenfreude. I must add, I have never had any type of emotional disorder in 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.
    Online prescription refill

  44. WOW just what I was searching for. Came here by searching for seo tools

  45. I am extremely impressed together with your writing talents as neatly as
    with the layout for your weblog. Is that this a paid subject or did you modify it yourself?
    Either way keep up the excellent quality writing, it is rare to look a
    great blog like this one nowadays..

  46. zborakul01 dice:

    Amazing blog! Is your theme custom made or did you download it
    from somewhere? A design like yours with a few simple
    adjustements would really make my blog jump out.
    Please let me know where you got your theme. Cheers

    Feel free to visit my webpage :: zborakul01

  47. situs toto dice:

    PESTOTO, situs toto resmi dengan pasaran togel 4D lengkap &
    aman. Nikmati taruhan mudah, hasil akurat, bonus melimpah, dan kemenangan dibayar 100%
    tanpa potongan.

  48. ProstaVive dice:

    It’s an amazing piece of writing designed for all the online users;
    they will obtain advantage from it I am sure.

  49. balhiam dice:

    By giving your pharmacy the complete name of the medication you’ll be able to better safe guard your health. Any reputable web business puts their shopping cart on a secure server. The massive surge in people using the internet for many of these shopping and daily needs has generated many pharmacies having an online site built, where they have numerous services which will help you avoid making unnecessary trips to the local pharmacy.
    Online pharmacy reviews

Responder a razor shark online casino Cancelar respuesta