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: 27,761

  1. continuously i used to read smaller content which also clear their motive, and that is also happening with this post which I am reading here.

  2. An impressive share! I’ve just forwarded this onto a co-worker who had been doing a little
    homework on this. And he in fact ordered me dinner due to the fact that I found it for
    him… lol. So allow me to reword this…. Thanks for the meal!!
    But yeah, thanks for spending the time to discuss
    this issue here on your website.

  3. more info dice:

    After you have a registered btting account, you can make a first deposit.

    Allso vvisit my site: more info

  4. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  5. read more dice:

    It rwally is hard to beat a lacrosse ball when it comes to pinpointing
    hard to reach muscle locations.

    My siute read more

  6. I am no longer positive the place you’re getting your
    info, however great topic. I needs to spend some time finding out more or understanding more.
    Thanks for excellent information I was searching for this information for my mission.

  7. I couldn’t ressist commenting. Well written!

    My homepage; Милфы Порно

  8. Attractive section of content. I just stumbled upon your site and in accession capital to assert that I get actually enjoyed
    account your blog posts. Anyway I will be subscribing to your
    feeds and even I achievement you access consistently quickly.

  9. Felisha dice:

    Thanks for sharing your thoughts about hello. Regards

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

  11. Today, I went to the beachfront with my children. I found a sea
    shell and gave it to my 4 year old daughter and
    said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear
    and screamed. There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  12. Amazing write ups, Thank you.

  13. It’s a pity you don’t have a donate button! I’d certainly donate to this excellent blog!
    I suppose for now i’ll settle for bookmarking and
    adding your RSS feed to my Google account. I look forward to new updates
    and will talk about this website with my Facebook group. Talk soon!

  14. I am really impressed along with your writing talents and also with the structure
    on your blog. Is that this a paid subject
    matter or did you modify it your self? Either way stay up the
    nice quality writing, it’s uncommon to see a great weblog like this one
    today..

  15. xt_blog dice:

    Howdy! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good results.
    If you know of any please share. Cheers!

  16. You are betting that your two dealt cards will be a pair with one particular a further.

    Also visit my web site get more info

  17. jitutoto 777 dice:

    Ӏt’ѕ impressive that үoᥙ arе getting ideas fгom tһis post as ᴡell as fгom our dialogue made at this plɑcе.

    Here iss my site jitutoto 777

  18. 프릭툰 dice:

    This blog was… how do I say it? Relevant!! Finally
    I have found something which helped me. Appreciate it!

  19. Thanks for sharing such a good opinion, article is good, thats why i
    have read it completely

  20. It’s really a cool and helpful piece of information. I’m happy
    that you just shared this helpful information with us.
    Please keep us up to date like this. Thanks for sharing.

  21. Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/ru/register-person?ref=V2H9AFPY

  22. Thanks in support of sharing such a nice thought, post is good,
    thats why i have read it completely

  23. It’s fantastic that you are getting thoughts from this post as
    well as from our discussion made at this place.

  24. I used to be able to find good information from your blog articles.

    Also visit my blog http://74.208.211.159/index.php?title=The_Need_For_Temecula_Cannabis_Doctors

  25. Isabel Rader dice:

    Very energetic post, I loved that bit. Will there be a part 2?

    Feel free to surf to my website https://maps.google.com.sg/url?sa=t&url=https%3A%2F%2Fdaniel.link%2Famazecbdgummies300mg76755

  26. Terrific article! This is the kind of info that should be shared around the net.

    Shame on the seek engines for now not positioning this post higher!
    Come on over and visit my web site . Thanks =)

  27. Thanks for the good writeup. It in reality was a enjoyment account it.

    Look advanced to far added agreeable from you!

    By the way, how could we keep up a correspondence?

  28. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.com/sl/register?ref=WTOZ531Y

  29. Appreciate it for helping out, excellent info.

    my web blog; Kings CBD Gummies

  30. It’s nearly impossible to find knowledgeable people on this subject,
    however, you seem like you know what you’re talking about!

    Thanks

  31. I got this web page from my pal who informed me concerning this web site and now this
    time I am visiting this web site and reading very informative content
    at this place.

  32. I absolutely love your blog and find many of your post’s to be just what I’m looking for.
    Would you offer guest writers to write content for yourself?
    I wouldn’t mind creating a post or elaborating on a number
    of the subjects you write regarding here.
    Again, awesome web site!

  33. Usually I do not read post on blogs, however I wish to say that this write-up very pressured me to check out and do so!
    Your writing style has been surprised me. Thanks, very nice post.

  34. I am an investor of gate io, I have consulted a lot of information, I hope to upgrade my investment strategy with a new model. Your article creation ideas have given me a lot of inspiration, but I still have some doubts. I wonder if you can help me? Thanks.

  35. It’s fantastic that you are getting thoughts from this article as well as from our argument made at
    this time.

  36. Wonderful postings. Appreciate it.

  37. Hey! I know this is kinda off topic but I was wondering if you knew where I could find a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having
    difficulty finding one? Thanks a lot!

  38. Excellent post. I used to be checking constantly this blog
    and I’m inspired! Extremely helpful information particularly
    the final part 🙂 I care for such info a lot. I was looking for this particular info for a long time.
    Thank you and good luck.

  39. Do you mind if I quote a few of your articles as long as I
    provide credit and sources back to your webpage?
    My blog is in the very same niche as yours and my users would truly benefit
    from some of the information you present here. Please let me know
    if this okay with you. Regards!

  40. Heya! I just wanted to ask if you ever have any trouble with
    hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no backup.
    Do you have any methods to stop hackers?

  41. Thanks for another informative blog. The place else may just I am
    getting that kind of information written in such a perfect manner?
    I have a undertaking that I am just now running on, and I
    have been on the glance out for such information.

  42. 한국야동 dice:

    What a cool post!
    May I copy this and share this with my group members?

    Come check my blog! It’s about Korean 한국야동
    If ever you are interested, feel free to come to my blog and
    have a look.
    Thanks a lot and Keep up the cool work!

  43. gate io dice:

    I am an investor of gate io, I have consulted a lot of information, I hope to upgrade my investment strategy with a new model. Your article creation ideas have given me a lot of inspiration, but I still have some doubts. I wonder if you can help me? Thanks.

  44. I view something truly interesting about your blog so I saved to fav.

    Feel free to visit my website :: http://m.525you.com/url.php?url=aHR0cHM6Ly93d3cuZGFya25lc3N0ci5jb20vYmxhY2ttYW1iYWNiZHJldmlld3M3Njk3MTc

  45. Eleanore dice:

    I am truly thankful to the owner of this web site who has
    shared this wonderful paragraph at at this place.

  46. Hello, I log on to your new stuff on a regular basis. Your
    writing style is awesome, keep up the good work!

Agrega tu comenatio