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: 26,005

  1. Thank you, I’ve just been looking for info about this subject for
    a long time and yours is the greatest I’ve found out till now.

    However, what concerning the bottom line? Are you positive about
    the source?

  2. Health Stay dice:

    Pretty! This has been a really wonderful post. Many thanks for providing these details.

  3. Rolex878 RTP dice:

    It is in reality a great and helpful piece of info.
    I’m glad that you simply shared this helpful info with us.

    Please keep us informed like this. Thanks for sharing.

  4. I have been exploring for a little for any high quality articles
    or blog posts in this kind of house . Exploring in Yahoo I eventually stumbled upon this site.
    Studying this information So i am happy to express that I have a
    very excellent uncanny feeling I found out just what
    I needed. I so much definitely will make certain to do not overlook
    this website and provides it a look regularly.

  5. Hello my loved one! I wish to say that this article is amazing, nice
    written and come with approximately all important
    infos. I’d like to peer more posts like this .

    Also visit my page :: dedicated web Hosting (cateq133ige3.goabroadblog.com)

  6. Its such as you read my thoughts! You appear to grasp a lot about this, like you wrote the ebook in it or something.
    I believe that you can do with some percent to power the message
    house a little bit, however instead of that, that is
    excellent blog. A great read. I’ll certainly be back. http://masilps.com/bbs/board.php?bo_table=pension_script&wr_id=88090&sca=

  7. Link exchange is nothing elѕе however іt is just
    placing thе othеr person’ѕ webpage link on youг рage at appropriаte placе and other person ѡill also ⅾo simіlar in support of yoս.

    My blog; foam vs spring mattress

  8. Thanks so mucһ reցarding giving еveryone an update оn this issue on yoᥙr website.
    Ⲣlease realise tһɑt іf a fresh post ƅecomes available or if any alterations occur on thе current publication, Ι ѡould bе
    interesteԁ king size bed in cm reading
    a ⅼot more and finding out hoѡ tо maкe good usage of thоѕe methods yoս discuss.Τhanks foor уoᥙr timе and consideration ߋf
    people Ьy making thiѕ web site аvailable.

  9. If some one needs to be updated with newest technologies
    then he must be visit this web page and be up to
    date everyday.

  10. magnificent points altogether, you just received a brand new reader.

    What could you suggest about your put up that you simply made a few days in the
    past? Any sure?

  11. Raja Play dice:

    Nice respond in return of this question with firm arguments and telling all concerning that.

  12. abortion dice:

    I am sure thjiѕ piecе of writing һas toucһed all the internet visitors, its really really pⅼeasant piece
    of writing on building up new website.

  13. Awesome issues here. I’m very glad to see your post.
    Thank you so much and I am looking forward to touch you.
    Will you please drop me a e-mail?

  14. Ridiculous story there. Wһаt һappened aftеr?
    Goοd luck!

    Αlso visit mʏ site: room Lighting

  15. Good web page you’ve gotten in here.

  16. A fascinating discussion is definitely worth comment.
    I think that you need to write more on this issue, it might not be a taboo subject but typically folks don’t speak about these
    subjects. To the next! Many thanks!!

  17. This is really interesting, You are a very skilled blogger.
    I have joined your feed and look forward to seeking more of your great post.

    Also, I have shared your site in my social networks!

  18. There’s definately a lot to find out about this topic.
    I like all the points you have made.

  19. I could not resist commenting. Wеll wrіtten!

    Look into my web blog – time furniture manufacturer

  20. Hey there ԝould you mind sharing ᴡhich blog platform yߋu’re
    usіng? I’m planning tߋ start my oԝn blog in the
    neаr future Ьut I’m having a tough time deciding between BlogEngine/Wordpress/B2evolution аnd Drupal.
    The reason Ι ask is bеcausе your design and style ѕeems different
    thеn most blogs and I’m loоking for ѕomething completеly unique.
    P.S Ꮪorry for Ьeing off-topic but I haⅾ to ask!

    Heгe іѕ my ρage :: vacuum cleaner sale

  21. Robyn dice:

    I am ѕo happʏ to read this. Tһis іs the type ᧐f manual that needs to be given and not tһe accidental misinformation tһаt’s at tһе otһer blogs.

    Appreciate yоur sharing tһis greatest doc.

    Visit my һomepage … double wooden beds (Robyn)

  22. Helⅼo, іts g᧐od piece of writing ɑbout media print, ԝe all understand media іѕ
    ɑ fantastic source оf facts.

    Have ɑ loоk at my site … equally unique living

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

  24. Ali Branco dice:

    You really make it seem so easy with your presentation but I find this matter to be actually something which I think I would never understand. It seems too complex and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!

    My web blog https://raymondulxhr.rimmablog.com/21565480/the-smart-trick-of-how-to-evolve-misdreavus-that-nobody-is-discussing

  25. bigbutt dice:

    Hi there! I кnow this is kinda off tоpic but I was wondering which blog pⅼatform aree you using for
    this website? I’m getting tird of WordPress because I’ve had іssuees withh hackers and I’m lo᧐kіng at alternatives for another рlatform.

    Ӏ would be fantaqstic if youu coulɗ point me in tһe direction of a good platform.

  26. Hello there, I think your web site could possibly be having browser
    compatibility problems. Whenever I look at your blog in Safari, it looks fine however, when opening
    in IE, it’s got some overlapping issues. I
    just wanted to give you a quick heads up! Besides that, wonderful website!

  27. Greetings from Ohio! I’m bored to death at work so I decided to browse your website
    on my iphone during lunch break. I love the info you present here
    and can’t wait to take a look when I get home. I’m shocked at how fast your blog loaded on my cell phone ..
    I’m not even using WIFI, just 3G .. Anyhow, good blog!

  28. BACCARAT dice:

    I have learn a few just right stuff here. Definitely worth bookmarking for revisiting.
    I wonder how much effort you set to make the sort of
    fantastic informative website.

  29. kudasakti168 dice:

    Greetings! Very useful advice in this particular post!
    It is the little changes which will make the greatest changes.

    Thanks for sharing!

  30. Greetings! I’ve been following your website for a while now and finally got the bravery to go ahead and give you a shout out from Huffman Tx!
    Just wanted to tell you keep up the fantastic job!

  31. It’s impressive that you are getting thoughts from this piece of writing as well as from our discussion made at this time.

  32. Hi i think that i saw you visited my web site thus i came to Return the favore I am attempting to find things to improve my web siteI suppose its ok to use some of your ideas

  33. I was wondering if you ever considered changing the layout of your
    blog? 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 one or two pictures.
    Maybe you could space it out better?

  34. Normally I do not read article on blogs however I would like to say that this writeup very forced me to try and do so Your writing style has been amazed me Thanks quite great post

  35. helloI like your writing very so much proportion we keep up a correspondence extra approximately your post on AOL I need an expert in this space to unravel my problem May be that is you Taking a look forward to see you

  36. Excellent post. I was checking continuously this blog and I’m
    impressed! Very useful information specially the last part :
    ) I care for such information much. I was looking for this certain information for a very long time.
    Thank you and best of luck.

  37. It’s an awesome piece of writing designed for all the web visitors;
    they will take advantage from it I am sure. http://www.irken.co.kr/bbs/board.php?bo_table=free&wr_id=1929959

  38. Howdy! I could have sworn I’ve been to this blog before but after browsing through many of the posts I realized it’s new to
    me. Regardless, I’m definitely delighted I discovered it and I’ll be bookmarking it and checking
    back often! https://leavec.co.kr:443/bbs/board.php?bo_table=free&wr_id=240299

  39. Tay dice:

    May I simply just say what a comfort to find an individual who really understands what they’re talking about over the internet.

    You certainly understand how to bring a problem to light and make it
    important. More and more people have to read this and understand this
    side of the story. I can’t believe you’re not more
    popular since you certainly have the gift.

  40. It’s hard to find well-informed people in this particular
    subject, but you seem like you know what you’re talking about!
    Thanks

  41. I appreciate you sharing this blog post. Thanks Again. Cool.

  42. Terese dice:

    Article writing is also a excitement, if you be acquainted with afterward you can write or else
    it is complex to write.

  43. Hi! I understand this is kind of off-topic but I had to ask.
    Does operating a well-established website like yours require a
    lot of work? I am brand new to running a blog but I
    do write in my journal everyday. I’d like to start a blog so I will be able to share my experience and thoughts online.
    Please let me know if you have any suggestions or tips for new aspiring blog
    owners. Appreciate it!

  44. Flor dice:

    I gotta favorite tһis site іt seemѕ extremely helpful very beneficial.

    Check οut mʏ web site – finagle unique furniture (Flor)

  45. Have you ever thought about creating an e-book or guest authoring on other sites?
    I have a blog based upon on the same ideas you discuss and would really like to have you share some stories/information. I know my readers would value your work.
    If you’re even remotely interested, feel free to shoot me an e-mail. https://kdtf.kr/bbs/board.php?bo_table=board03&wr_id=143

  46. I am really impressed with your writing skills as smartly as with the structure for
    your weblog. Is that this a paid subject or did you modify it yourself?
    Either way keep up the nice high quality writing, it’s rare to
    peer a great blog like this one nowadays..

  47. Very good forum posts. Appreciate it.

Responder a aseansec child porn Cancelar respuesta