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

  1. daachkaru dice:

    Good day! This post couldn’t be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this post to him. Pretty sure he will have a good read. Thank you for sharing!

  2. binance dice:

    I absoluttely love your blog and ffind a llot oof your post’s to be precisely what I’m lolking for.
    can you offer guest writers to write content availablee for you?
    I wouldn’t mind publishing a post or elaorating on a lot oof the subjects you write with regards to here.
    Again, awesome site!

    Look into my website … binance

  3. obat kuat dice:

    I always emailed this webpage post page to all my associates, because if like to read it
    then my contacts will too.

  4. binance dice:

    I’m extremely impressed wih your writing skills and
    also with the layout on your blog. Is this a paid theme or did you modify it yourself?
    Either way keep up the nice quality writing, it iss rare to
    see a nice blog ljke this one nowadays.

    Feel fee to shrf to my homepage … binance

  5. Wow, awesome blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your site is great, as well as the content!

  6. I like it when individuals get together and share views.
    Great site, continue the good work!

  7. zeus 8m dice:

    Ԍood daʏ! I cⲟuld һave sworn I’ѵe visited tһiѕ site Ьefore but
    aftеr browsing throuց many օf the polsts I realized it’s nnew tօ me.
    Anyhоw, I’m definitely delighted I stumbled upon it and I’ll
    ƅe book-marking it and checking back frequently!

    Mү web-site … zeus 8m

  8. We’re a group of volunteers and starting a new scheme in our community.
    Your web site provided us with valuable information to work
    on. You’ve done an impressive job and our entire community will be thankful to you.

  9. I like the valuable information you provide in your articles. I will bookmark your weblog and check again here frequently. I am quite certain I will learn many new stuff right here! Good luck for the next!

  10. great submit, very informative. I ponder
    why the other experts of this sector don’t realize this.
    You must proceed your writing. I am confident, you’ve a huge readers’ base already!

    Feel free to visit my webpage: https://Www.Atekri.Com/

  11. drug rehab dice:

    Due to PaRC’s extensive history of treating patients of all
    ages they know that drug and alcohol addiction is treatable.

  12. Great article, exactly what I wanted to find.

  13. I do not know whether it’s just me or if everybody else experiencing problems
    with your website. It seems like some of the written text on your
    posts are running off the screen. Can someone else please provide feedback and let me know if this is happening
    to them as well? This may be a problem with my
    web browser because I’ve had this happen previously.
    Thank you

    Feel free to visit my web site: jspowertrain.Com

  14. Greetings from Idaho! I’m bored to death at work so I decided to check out your site on my iphone during lunch break. I really like the info you present here and can’t wait to take a look when I get home. I’m shocked at how quick your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyhow, awesome site!

  15. babies dice:

    I аm in faⅽct gratеful to the holder of tһis webste
    who has shared this impressive post at here.

  16. sadounik.ru dice:

    Hello! I could have sworn I’ve been to this site before but after browsing through a few of the posts I realized it’s new to me. Anyhow, I’m definitely pleased I discovered it and I’ll be bookmarking it and checking back regularly!

  17. Bailey dice:

    Thanks a bunch for sharing this with all people you really understand what you are speaking approximately!
    Bookmarked. Please also talk over with my web site =). We could have a link change contract between us

  18. Miles dice:

    Hi there to every , as I am in fact eager of reading this
    weblog’s post to be updated on a regular basis. It contains good stuff.

  19. Sven dice:

    When I originally commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I get four emails with the same comment.
    Is there a means you can remove me from that service?

    Thanks!

  20. I’ve been surtfing online more than 4 hours today,
    yet I never found any interesting article like yours.
    It is pretgy worth enough for me. Personally, if all web
    owners and bloggers made good content as you did, the internet will be much more
    useful than ever before.

    Feel free tto surf to my web blog :: 바이낸스 추천인

  21. 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?
    Bless you!

  22. Hi! I’m at work surfing around your blog from my new apple iphone!
    Just wanted to say I love reading through
    your blog and look forward to all your posts! Carry on the outstanding work!

  23. Appreciating the hard work you put into your blog and detailed information you offer.
    It’s awesome to come across a blog every once in a
    while that isn’t the same old rehashed information. Excellent read!
    I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  24. I do not even know how I ended up here, but I thought this post was great.

    I do not know who you are but definitely you’re going to a famous
    blogger if you aren’t already 😉 Cheers!

    Look at my site; wooden garage doors (http://nitka.by/index.php?subaction=userinfo&user=bojotow)

  25. Hello There. I found your blog using msn. This is a really well written article.
    I will be sure to bookmark it and return to read more of your useful info.
    Thanks for the post. I will definitely return.

    My webpage … magnetic lock (http://Dekatrian.com)

  26. Hi, I desire to subscribe for this webpage to take hottest updates, thus where can i do it
    please help.

  27. blog dice:

    I love it when folks get together and share opinions.
    Great blog, keep it up!

  28. I like what you guys are usually up too. This sort of clever work and exposure!
    Keep up the terrific works guys I’ve you guys to my blogroll.

  29. Thanks to my father who stated to me concerning this blog, this weblog is genuinely awesome.

  30. daachka.ru dice:

    Hi there, all the time i used to check webpage posts here early in the dawn, since i love to gain knowledge of more and more.

  31. daa4a.ru dice:

    It is appropriate 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 wish to suggest you few interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it!

  32. Online Tax dice:

    Thank you for sharing with us, I think this website truly stands
    out :D.

    Feel free to surf to my website; Online Tax

  33. Недорогой частный эромассаж в Москве – тайский салон

  34. I will immediately take hold of your rss
    feed as I can’t to find your e-mail subscription hyperlink or newsletter service.

    Do you have any? Kindly let me realize so that I could subscribe.
    Thanks.

  35. 8tracks.com dice:

    Attractive section of content. I just stumbled upon your web site and
    in accession capital to assert that I get in fact enjoyed account your blog posts.

    Any way I will be subscribing to your feeds and even I achievement you access consistently fast.

  36. oyun haber dice:

    With havin so much content do you ever run into any issues of plagorism or copyright
    violation? My website has a lot of exclusive content I’ve
    either written myself or outsourced but it appears a lot of it is popping it up all over the web without my authorization. Do you know any solutions to help reduce content from being stolen? I’d truly appreciate it.

  37. I think the admin of this web page is really working hard for his site, since here every stuff is quality based data.

  38. It is appropriate time to make a few plans for the long run and it’s time to
    be happy. I have learn this put up and if I could
    I want to recommend you some fascinating issues or suggestions.
    Perhaps you can write next articles referring to this article.
    I desire to read more things about it!

  39. Hello, this weekend is fastidious for me, since this point in time i am reading this fantastic informative piece of writing here at my house.

  40. Rory dice:

    Hi to every body, it’s my first go to see of this weblog; this webpage contains amazing and
    actually excellent material designed for visitors.

  41. www zoo xxx dice:

    hi!,I love your writing so so much! proportion we communicate more approximately your post on AOL? I need an expert in this space to solve my problem. May be that is you! Looking forward to see you.

  42. Howdy very cool site!! Guy .. Beautiful .. Superb ..

    I will bookmark your website and take the feeds also?
    I’m glad to search out a lot of helpful information right here in the put
    up, we’d like develop extra strategies on this regard,
    thanks for sharing. . . . . .

  43. I think the admin of this site is in fact working hard in support
    of his website, as here every information is quality based material.

  44. I am in fact thankful to the holder of this web page who has shared this
    fantastic article at here.

  45. A lot of thanks for your whole hard work on this website.
    Ellie delights in doing investigation and it’s really simple to grasp why.
    A lot of people know all regarding the dynamic ways you deliver informative guides through this web blog and therefore attract contribution from other ones on that matter
    and our favorite girl is certainly starting to learn a great deal.
    Enjoy the rest of the new year. You’re the one carrying
    out a superb job.[X-N-E-W-L-I-N-S-P-I-N-X]I’m really impressed
    with your writing talents as well as with the layout in your weblog.
    Is that this a paid subject or did you customize it your self?
    Anyway keep up the excellent quality writing, it is uncommon to see
    a great blog like this one nowadays.

    My site – New Domain, http://–Ctbfqxicawkedu.рф/Index.Php?Subaction=Userinfo&User=Qekyba,

  46. I don’t even know how I ended up here, but I thought this post was good.
    I don’t know who you are but certainly you’re going to a famous blogger if you aren’t already 😉 Cheers!

  47. Greetings! I’ve been reading your site for some time now and finally got the bravery to go ahead and give you a
    shout out from Houston Tx! Just wanted to tell you keep up the good work!

  48. Dorothea dice:

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

  49. Its like you read my mind! You seem to know so much about this, like you wrote the
    book in it or something. I think that you can do with a
    few pics to drive the message home a little bit, but instead of that, this is great
    blog. An excellent read. I’ll definitely be back.

Agrega tu comenatio