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

  1. There is certainly a lot to learn about this topic. I really like
    all the points you have made.

  2. I have been exploring for a little bit for any high-quality articles or
    blog posts on this kind of space . Exploring in Yahoo I at last stumbled upon this
    site. Reading this information So i am happy
    to convey that I have a very excellent uncanny feeling I discovered just what I needed.
    I so much undoubtedly will make certain to don?t put
    out of your mind this website and give it a glance on a relentless basis.

  3. I every time emailed this web site post page to all my associates, because if like to
    read it afterward my friends will too.

  4. Hmm is anyone else experiencing problems with the pictures on this blog loading?
    I’m trying to find out if its a problem on my end or if it’s the blog.
    Any suggestions would be greatly appreciated.

  5. It’s appropriate time to make some plans for the future and it is time to
    be happy. I’ve read this post and if I could I desire to suggest you some interesting things or advice.
    Maybe you could write next articles referring to this article.
    I want to read more things about it!

  6. Its such as you read my thoughts! You seem to know so much approximately this, like you wrote the guide in it or something.
    I feel that you just can do with some % to drive the message home a little bit, however instead
    of that, this is great blog. A fantastic read. I will certainly be back.

  7. Gacor77 dice:

    Currently it sounds like Movable Type is the best blogging
    platform available right now. (from what I’ve read) Is that what you are using on your
    blog?

  8. Its such as you learn my mind! You seem to know so much
    approximately this, like you wrote the book in it or something.
    I feel that you just could do with some percent to force the message house a little bit, but instead of that, that is magnificent blog.

    A fantastic read. I’ll definitely be back.

  9. This is a topic that’s near to my heart…
    Cheers! Exactly where are your contact details though?

  10. my website dice:

    Hello there, just became alert to your blog through Google,
    and found that it is truly informative. I’m gonna watch
    out for brussels. I will be grateful if you continue this in future.
    Numerous people will be benefited from your writing. Cheers!

  11. This is a topic that’s near to my heart… Cheers!

    Whhere are your contract details though?

  12. Amazing! This blog looks just like my old one! It’s on a totally different
    topic but it has pretty much the same page layout and design. Great
    choice of colors!

  13. rpl dice:

    What’s up, its good paragraph on the topic of media print,
    we all know media is a impressive source of data.

  14. hey theгe and tһank you for your info – I’ve certainlу picked up something new from riɡht һere.
    I dіd howeѵer expertise a fеw technical issues սsing
    this web site, sіnce Ι experienced to reload thee website mny tіmes prеvious tο I coᥙld get it tto
    load correctly. I hhad been wondering if your web host is OΚ?

    Νot that I am complaining, ƅut slow loading instances tіme wiol
    oftеn affect ʏouг placement in google ɑnd can damzge
    your high-quality score іf ads andd marketing ѡith Adwords.

    Ꭺnyway I am adding tһis RSS to mʏ e-mail ɑnd ϲan loоk оut ffor a lot moгe of
    youir respective intriguing content. Ensure that yօu update this
    aցain ѵery soon.

    my blog post: বিনামূল্যে স্লট

  15. If some one needs to be updated with most up-to-date technologies then he must
    be pay a visit this web site and be up to date everyday.

  16. Asking questions are really pleasant thing if you are not understanding
    something entirely, except this post provides nice understanding yet.Pit Vipers polarized (Maggie)http://www.talniri.co.il/finance/MobileMenu.aspx?returnurl=http://charliebvuw723.image-perth.org/how-to-get-more-results-out-of-your-gymshark-flex-leggingshttp://mylesxbgu161.wpsuo.com/10-great-gymshark-outlet-public-speakers

  17. new88nc dice:

    Hurrah! At last I got a blog from where I be able to genuinely
    take valuable information regarding my study and knowledge.

  18. infobetgacor dice:

    It is not my first time to pay a visit this website, i am browsing this site dailly and take nice information from here daily.

  19. If you are going for most excellent contents like myself, only go to
    see this website everyday because it presents feature contents, thanks

  20. We absolutely love your blog and find almost all of your post’s to be what precisely I’m looking for.
    Does one offer guest writers to write content to suit your needs?
    I wouldn’t mind composing a post or elaborating on a lot of the subjects you write
    concerning here. Again, awesome blog!

    Here is my web-site … Start Select Keto Review

  21. I am lucky that I discovered this web site, just the right info that I was searching for!

    Visit my web site :: Slim Core Keto Review

  22. My brother recommended I might like this web
    site. He was entirely right. This post truly made my day.
    You cann’t imagine just how much time I had spent for this information! Thanks!

  23. link vao w88 dice:

    My partner and I stumbled over here coming from a different page
    and thought I should check things out. I like what I see so now i’m following you.
    Look forward to checking out your web page for a
    second time.

  24. hey there and thank you for your information – I’ve definitely picked up something new from right here.

    I did however expertise several technical points using this web site, since I experienced to reload the website lots of
    times previous to I could get it to load properly. I had been wondering
    if your web host is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google
    and could damage your high quality score if ads and marketing with Adwords.
    Well I’m adding this RSS to my e-mail and can look out for much more of your
    respective fascinating content. Make sure you update this again very soon.

  25. My coder is trying to persuade 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 WordPress on a variety
    of websites for about a year and am concerned about switching to
    another platform. I have heard very good things about blogengine.net.
    Is there a way I can import all my wordpress posts into it?

    Any kind of help would be greatly appreciated!

  26. After checking out a number of the articles
    on your web site, I really appreciate your technique of blogging.
    I added it to my bookmark site list and will be checking
    back in the near future. Take a look at my web site as well and tell me what you think.

    Feel free to visit my blog post :: Start Select Keto Review

  27. cialis pill dice:

    stopping plaquenil hydroxychloroquine 5 mg plaquenil dosage for malaria prevention how long does it take to get plaquenil out of body for those over 60

  28. Hi there, this weekend is good designed for me, since this moment i am reading this
    impressive informative post here at my home.

  29. It’s fantastic that you are getting ideas
    from this article as well as from our discussion made at this place.

  30. Hurrah, that’s what I was looking for, what a data!
    existing here at this blog, thanks admin of this
    web page.

  31. price dice:

    Have you ever thought about including a little bit more than just
    your articles? I mean, what you say is valuable and everything.
    But think of if you added some great pictures or video clips to give your posts more, “pop”!

    Your content is excellent but with pics and clips,
    this site could undeniably be one of the greatest in its field.
    Terrific blog!

  32. For most recent news you have to go to see internet
    and on the web I found this site as a best web page for
    most recent updates.

  33. vagina dice:

    Very energetic article, I enjoyed that a lot.
    Will there be a part 2?

  34. plaquenil sun reaction [url=https://plaquenilus.com/#]buy hydroxychloroquine online [/url] plaquenil does it cause bone loss how do you know if your hair is falling out if it is coming from plaquenil or dermatomyositis

  35. w88 dice:

    continuously i used to read smaller content that as well clear their
    motive, and that is also happening with this paragraph which I am reading now.

  36. This is very fascinating, You’re a very professional blogger.
    I have joined your feed and look ahead to seeking more of
    your wonderful post. Additionally, I have shared your website in my social networks

  37. Hey there, I think your website might be having browser compatibility issues.
    When I look at your blog in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up!
    Other then that, terrific blog!

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

Responder a his comment is here Cancelar respuesta