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: 30,388

  1. Awesome! Its in fact remarkable piece of writing, I have got much
    clear idea regarding from this paragraph.

  2. These are really fantastic ideas in about blogging.
    You have touched some fastidious factors here. Any way keep up wrinting.

  3. I blog frequently and I genuinely thank you for your information. This article has really peaked my interest.

    I’m going to book mark your blog and keep checking for new
    information about once a week. I subscribed to your Feed as
    well.

  4. Good way of describing, and fastidious article to obtain data on the topic of my presentation topic,
    which i am going to present in university.

  5. Hi every one, here every one is sharing these kinds of experience, thus it’s nice to read this blog, and
    I used to pay a visit this webpage all the time.

  6. Great information. Lucky me I found your site by chance (stumbleupon).
    I’ve book-marked it for later!

  7. of course like your web-site however you have to take a look at the spelling on several
    of your posts. Many of them are rife with spelling problems and I
    in finding it very bothersome to tell the truth nevertheless I’ll definitely come back again.

  8. Does your site have a contact page? I’m having trouble locating
    it but, I’d like to send you an email. I’ve got some creative ideas for your blog you might be interested in hearing.
    Either way, great website and I look forward to seeing
    it improve over time.

  9. I’m not that much of a online reader to be honest but your blogs really nice,
    keep it up! I’ll go ahead and bookmark your site to come back later.

    Many thanks

  10. Hey! I’m at work surfing around your blog from my new
    iphone! Just wanted to say I love reading your blog and look forward to all
    your posts! Keep up the great work!

  11. Hi there would you mind letting me know which web host you’re working
    with? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a
    lot faster then most. Can you recommend a good internet hosting provider at a fair price?

    Thank you, I appreciate it!

  12. construccion dice:

    Fabulous, what a weblog it is! This blog gives useful data to us, keep it up.

  13. Hey! Do you know if they make any plugins to assist with
    Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains.

    If you know of any please share. Many thanks!

  14. Trade nft dice:

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

  15. This article presents clear idea in support of the new viewers of blogging, that
    in fact how to do blogging and site-building.

  16. I have read so many articles concerning the blogger lovers however this article is actually a
    fastidious piece of writing, keep it up.

  17. You made some really good points there. I looked on the internet for additional information about the issue and
    found most people will go along with your views on this site.

  18. buy baclofen [url=http://baclofen.guru/#]lioresal 10 tablet [/url] can you just stop taking baclofen how is baclofen metabolized

  19. This site really has all the info I wanted about this subject and didn’t
    know who to ask.

  20. I am now not sure the place you’re getting your information, but great topic.
    I must spend some time finding out much more or figuring out
    more. Thank you for excellent information I was
    in search of this information for my mission.

  21. vwin dice:

    Post writing is also a fun, if you be acquainted
    with after that you can write otherwise it is difficult to write.

  22. w88 dice:

    My programmer is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the expenses. But he’s tryiong none the less.

    I’ve been using Movable-type on various websites for about a year and am anxious
    about switching to another platform. I have heard good things
    about blogengine.net. Is there a way I can import all
    my wordpress posts into it? Any help would be greatly appreciated!

  23. Good post. I absolutely love this site. Continue the good work!

  24. Hello there! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on.
    Any tips?

  25. you’re in reality a just right webmaster. The website loading velocity is amazing.
    It kind of feels that you’re doing any distinctive trick.
    Also, The contents are masterpiece. you’ve done a wonderful job in this matter!

  26. Hello! Would you mind if I share your blog with my myspace group?
    There’s a lot of people that I think would really appreciate your
    content. Please let me know. Cheers

  27. I really lіke whst you guys tend t᧐ bе up too.
    Тhis sort of clever work and coverage! Ꮶeep սp tһe ցood
    woгks guys Ι’ve incorporated you guys to my own blogroll.

    My рage :: volg deze informatie

  28. If you are going for best contents like I do, just visit this site all
    the time since it offers quality contents, thanks

  29. Asking questions are really nice thing if you are not understanding something completely,
    however this piece of writing provides nice understanding yet.

    my web page … Grow Max Pro Reviews

  30. Good day I am so grateful I found your site, I
    really found you by error, while I was researching on Digg for something else, Nonetheless I am here now and
    would just like to say cheers for a marvelous post
    and a all round exciting blog (I also love the theme/design), I don’t have time to read through it all at the minute but I have book-marked it and also added your RSS feeds,
    so when I have time I will be back to read a lot more, Please do keep up the great job.

  31. Techfiver dice:

    Unquestionably imagine that that you stated. Your favorite justification seemed to be
    at the internet the easiest thing to remember of.

    I say to you, I certainly get irked while people think
    about issues that they just don’t know about. You controlled
    to hit the nail upon the top and defined out the entire thing with no need side-effects ,
    other people can take a signal. Will probably be again to get more.
    Thank you

  32. ivermectin bed bugs stromectol 12mg can ivermectin paste be used topically how long does it take for ivermectin to work in humans for worms

  33. My brother suggested I would possibly like this website. He was once totally right.
    This post truly made my day. You can not imagine just how much
    time I had spent for this info! Thank you!

  34. Valuable information. Fortunate me I found your website unintentionally, and
    I am stunned why this coincidence did not happened earlier!
    I bookmarked it.

    Review my website … Max Boost Keto Ultra Burn

  35. Undeniably believe that which you said. Your favorite reason appeared to be on the net the easiest thing to
    be aware of. I say to you, I definitely get irked while people think about worries
    that they just don’t know about. You managed to hit the nail upon the top and
    also defined out the whole thing without having side-effects , people can take a
    signal. Will likely be back to get more. Thanks

  36. aries dice:

    Greate post. Keep posting such kind of information on your blog.
    Im really impressed by your site.
    Hi there, You have done an incredible job. I’ll definitely digg it and in my view
    suggest to my friends. I’m confident they will be benefited from this web site.

  37. ZappZilla dice:

    Hi there! I could have sworn I?ve been to this website before but
    after browsing through some of the posts I realized it?s new to me.
    Anyhow, I?m definitely delighted I discovered it and I?ll be bookmarking it and checking back frequently!

    Here is my web page: ZappZilla

  38. FluxActive dice:

    Very soon this web site will be famous among all blog
    visitors, due to it’s good articles

    My site … FluxActive

  39. Why viewers still make use of to read news papers
    when in this technological globe all is presented on web?

  40. I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire
    someone to do it for you? Plz respond as I’m looking
    to create my own blog and would like to know where u got this from.
    thanks a lot

  41. monistat vs diflucan where can i purchase diflucan over the counter diflucan side effects in women how many hours apart do you take diflucan

  42. VISA 19071 dice:

    Thanks for a marvelous posting! I actually enjoyed reading it, you will be a great author.
    I will make sure to bookmark your blog and definitely will come back at some point.
    I want to encourage yourself to continue your great job,
    have a nice holiday weekend!

  43. p437214 dice:

    Wow that was odd. I just wrote an very long comment
    but after I clicked submit my comment didn’t show up.

    Grrrr… well I’m not writing all that over again.
    Regardless, just wanted to say fantastic blog!

  44. I am regular reader, how are you everybody? This article posted at
    this web page is in fact nice.

  45. Good post but I was wanting to know if you could write a
    litte more on this subject? I’d be very grateful if you could elaborate a little bit further.
    Cheers!

  46. letou dice:

    Oh my goodness! Incredible article dude! Thanks, However I am
    encountering troubles with your RSS. I don’t understand the reason why I cannot subscribe to it.
    Is there anybody else getting the same RSS problems? Anybody who knows the
    solution can you kindly respond? Thanks!!

  47. Kamagra dice:

    I have to thank you for the efforts you’ve put in penning this
    blog. I’m hoping to check out the same high-grade content from you in the future as well.

    In fact, your creative writing abilities has encouraged me to get my own, personal website now 😉

  48. I have read some just right stuff here. Definitely value bookmarking for revisiting.

    I surprise how so much attempt you put to create such
    a wonderful informative site.

  49. fixmywp dice:

    Hi! 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 trouble finding one?

    Thanks a lot!

Responder a construccion Cancelar respuesta