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

  1. Garry dice:

    Keep on working, great job!

  2. discuss dice:

    Very rapidly this website will be famous among all blogging users, due to it’s good
    articles or reviews

  3. This post is worth everyone’s attention. When can I find out more?

  4. Hi there everyone, it’s my first pay a visit at
    this site, and piece of writing is in fact fruitful designed
    for me, keep up posting these content.

  5. nadachee.ru dice:

    Hi there, just wanted to say, I enjoyed this article. It was inspiring. Keep on posting!

  6. I’m really impressed with your writing skills as well as with the layout on your weblog.
    Is this a paid theme or did you modify it yourself? Either way keep up the nice quality writing, it’s rare
    to see a great blog like this one today.

  7. click here dice:

    Opened in 2011, the casino presents its players a competitive game of pokerr whilst enjoying their holiday in the area.

    Loook at my page: click here

  8. I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100% positive. Any tips or advice would be greatly appreciated. Appreciate it

  9. My relatives all the time say that I am wasting my time here at net, except I know I am getting knowledge every day by reading such good articles or reviews.

  10. Appreciate it. Ample information.

  11. daachka.ru dice:

    Greetings from Los angeles! I’m bored to tears at work so I decided to check out your site on my iphone during lunch break. I enjoy the knowledge 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 mobile .. I’m not even using WIFI, just 3G .. Anyhow, awesome site!

  12. І was suggested thiѕ web site by my cousin. Ӏ am not sure whethеr tuis post іѕ ѡritten bby һim as
    nobody еlse қnoᴡ sucһ detailed abоut my problеm. Үоu are
    wonderful! Ꭲhanks!

    Here is my һomepage; chủ đề xu hướng hiện tại

  13. yes-dacha.ru dice:

    Hurrah! Finally I got a weblog from where I be able to in fact take useful data regarding my study and knowledge.

  14. jobs.cncf.io dice:

    What’s up, all is going fine here and ofcourse every one
    is sharing information, that’s really fine, keep up writing.

  15. genius.com dice:

    I pay a visit everyday a few blogs and websites to read posts,
    but this website presents feature based posts.

  16. I have been browsing online more than 3 hours today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. Personally,
    if all website owners and bloggers made good content
    as you did, the internet will be a lot more useful than ever before.

  17. Hello there! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa? My site goes over a lot of the same subjects as yours and I feel we could greatly benefit from each other. If you happen to be interested feel free to send me an e-mail. I look forward to hearing from you! Awesome blog by the way!

  18. Have you ever thought about adding a little bit more than just your articles? I mean, what you say is fundamental and everything. But just imagine if you added some great graphics or video clips to give your posts more, “pop”! Your content is excellent but with pics and videos, this site could certainly be one of the greatest in its niche. Wonderful blog!

  19. I have read so many content on the topic of the blogger lovers
    except this paragraph is really a nice paragraph, keep it up.

  20. If you are going for most excellent contents like myself, just pay a quick visit this web page daily since it offers feature contents, thanks

  21. Hey just wanted to give you a quick heads up and let you know a few of the images aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same results.

  22. Amazing lots of amazing knowledge!

  23. Jung dice:

    I am in fact thankful to the owner of this site who has shared this fantastic piece of
    writing at here.

  24. This is my first time pay a quick visit at here and i am really happy to read everthing at one place.

  25. Your mode of telling all in this piece of writing is genuinely good,
    all can easily know it, Thanks a lot.

  26. Great post. I’m dealing with a few of these issues as well..

  27. Thanks for finally writing about > Infraestructura como código
    – Politraining < Loved it!

  28. I’m not sure why but this blog is loading extremely slow for me.
    Is anyone else having this problem or is it a issue on my end?
    I’ll check back later on and see if the problem still exists.

  29. Have you ever considered about including a little bit more
    than just your articles? I mean, what you say is fundamental and all.
    But imagine if you added some great photos or videos to give your posts more,
    “pop”! Your content is excellent but with images and video clips, this
    blog could undeniably be one of the very best in its niche.
    Very good blog!

  30. Mason dice:

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

  31. Incredible quest there. What occurred after? Good luck!

  32. Why people still use to read news papers when in this technological world everything is existing on net?

  33. Great article! That is the kind of info that are meant to be shared around the web.
    Disgrace on Google for no longer positioning this submit
    higher! Come on over and seek advice from my site .

    Thank you =)

  34. My coder is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the costs.

    But he’s tryiong none the less. I’ve been using Movable-type on a number of websites for about a
    year and am worried 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 really appreciated!

  35. Heⅼlo! Thhis iѕ kind of off topic but Ι need sоme guidance from аn established blog.
    Ӏѕ іt very difficult to set upp үour oԝn blog?
    I’m nott ѵery techijcal but I can figure tһings out pretty quick.

    I’m thinking аbout creating my own ƅut I’m noot ѕure where to begin.
    Do yoᥙ һave any ideas ᧐r suggestions? Thаnks

    Take a ⅼook aat my blog: tendances google chaudes

  36. Sweet blog! I found it while searching on Yahoo News.

    Do you have any suggestions on how to get listed
    in Yahoo News? I’ve been trying for a while but I never seem to get there!
    Cheers

  37. Jurist dice:

    I was able to find good info from your articles.

  38. Wow, this post is fastidious, my sister is analyzing such things, thus I am going to
    let know her.

  39. Unquestionably believe that which you stated. Your favorite justification appeared to be on the net the simplest thing to be aware of. I say to you, I definitely get irked while people consider worries that they plainly do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks

  40. Terrific post however 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. Bless you!

  41. This design is spectacular! You certainly know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Wonderful job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!

  42. Hey there just wanted to give you a quick heads up. The text in your
    article seem to be running off the screen in Ie. I’m not sure if this is
    a format issue or something to do with web browser compatibility but
    I thought I’d post to let you know. The layout look great though!
    Hope you get the issue solved soon. Cheers

  43. Thanks for your marvelous posting! I really enjoyed reading it, you are a
    great author.I will make certain to bookmark your blog and definitely will come back
    later on. I want to encourage you to definitely continue your great work, have a nice day!

  44. I visited many sites however the audio quality for audio songs existing
    at this website is in fact superb.

  45. blur mint dice:

    I was curious if you ever considered changing the structure of your site?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people
    could connect with it better. Youve got an awful lot of text for only having 1 or two pictures.

    Maybe you could space it out better?

  46. It’s perfect time to make some plans for the future and it’s time to be happy.
    I’ve read this post and if I could I wish to suggest you some interesting things or
    advice. Perhaps you can write next articles referring to this article.
    I desire to read even more things about it!

  47. Excellent way of explaining, and pleasant piece of writing to obtain data on the topic of my presentation subject, which i am going to convey in university.

  48. Do you have a spam problem on this website; I also am a blogger,
    and I was wondering your situation; many of us have created some nice procedures
    and we are looking to exchange strategies with others, why not shoot me an email if interested.

Responder a ราคาบอลไหล Cancelar respuesta