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: 22,905

  1. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  2. JACATA dice:

    I do not even understand how I ended up here, but I believed this submit was
    once good. I do not recognize who you might be however definitely you are going to a well-known blogger in case you are
    not already. Cheers!

  3. Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  4. Howdy! I could have sworn I’ve visited this blog
    before but after looking at a few of the posts I realized
    it’s new to me. Nonetheless, I’m certainly pleased I discovered it and I’ll be book-marking it and checking back regularly!

  5. Hi there! I know this is kind of off-topic but I needed to ask.
    Does building a well-established blog like yours take a massive amount work?
    I am completely new to blogging but I do write in my diary every day.
    I’d like to start a blog so I can share my personal experience and thoughts online.
    Please let me know if you have any recommendations or tips for brand
    new aspiring blog owners. Thankyou!

  6. Thanks a lot for sharing this with all people you actually understand what you
    are speaking approximately! Bookmarked. Please additionally talk over with my website =).
    We could have a link change contract between us

  7. Very good blog! Do you have any recommendations for aspiring writers?
    I’m hoping to start my own site soon but I’m a little lost on everything.
    Would you suggest starting with a free platform like WordPress
    or go for a paid option? There are so many choices out there
    that I’m completely overwhelmed .. Any ideas?
    Appreciate it!

  8. My brother suggested I would possibly like this blog.
    He used to be entirely right. This post actually made my day.
    You can not consider just how a lot time I had spent for this information! Thanks!

  9. look at this dice:

    It’s actually a great and helpful piece of information. I am happy that you just shared this helpful info with us.
    Please stay us up to date like this. Thank you for sharing.

  10. our enterprise will help any woman navigate the process of treatment,
    answer to questions that interest you, explain about the https://StemCellTreatmentCost.com/ and assist book the procedure
    with well-established suppliers of services worldwide.

  11. Pretty! This has been an extremely wonderful post. Thank you for supplying this information.

  12. Do you have a spam problem on this site; I also am
    a blogger, and I was wanting to know your situation; many of us have developed some nice methods and we
    are looking to trade methods with others, why not shoot me an e-mail if interested.

  13. My relatives always say that I am killing my time here at web, however I know
    I am getting experience every day by reading thes pleasant articles.

  14. evostoto dice:

    I’ve read several just right stuff here. Definitely value bookmarking for revisiting.
    I wonder how so much attempt you set to create any such wonderful informative website.

  15. If you desire to grow your know-how only keep visiting this website and be updated
    with the hottest news update posted here.

  16. see here dice:

    Can I simply just say what a comfort to find a person that really understands
    what they’re discussing on the net. You definitely realize how
    to bring an issue to light and make it important.

    More and more people really need to check this out
    and understand this side of your story. I was surprised that you are not more popular given that you surely have the gift.

  17. look at this dice:

    Hey There. I found your weblog using msn. This is a really well written article.

    I will make sure to bookmark it and return to read more of your useful info.

    Thanks for the post. I’ll definitely comeback.

  18. See Details dice:

    It’s awesome in favor of me to have a web page,
    which is valuable designed for my experience. thanks admin

  19. We stumbled over here different website and thought I
    may as well check things out. I like what I see so i am
    just following you. Look forward to exploring your web page repeatedly.

  20. The Carnegie Museum of Art is hosting its 58th Carnegie International Exhibition,a huge temporary show of both historical and contemporary art which runs through April 2,ランジェリー ショップ

  21. There is definately a great deal to know about this subject.
    I love all the points you have made.

  22. age of war dice:

    Every weekend i used to pay a quick visit this web page, because i want enjoyment, for the reason that this this site conations truly
    fastidious funny information too.

  23. public s’mores roasts,セクシーコスプレor elf meet-and-greets.

  24. magnificent post, very informative. I wonder why the
    opposite experts of this sector don’t understand this. You must proceed your
    writing. I am confident, you have a huge readers’ base already!

  25. What i do not understood is in reality how you’re now not really a lot more
    well-appreciated than you might be right now. You are so intelligent.
    You realize therefore significantly in terms of this matter, made me individually imagine it from so many various
    angles. Its like men and women don’t seem to be interested except it is one thing to do with Woman gaga!
    Your own stuffs outstanding. Always deal with it up!

  26. Hmm is anyone else having 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 feedback would be greatly appreciated.

    Review my web blog :: is glyco shield a scam

  27. My family always say that I am killing my time here at net, but I know I am getting familiarity everyday by reading thes good articles.

  28. When someone writes an piece of writing he/she retains the idea of a user in his/her brain that how a user can understand it.
    So that’s why this piece of writing is great. Thanks!

  29. situs toto dice:

    Hi there to every body, it’s my first pay a quick visit of this webpage; this weblog contains amazing and genuinely excellent
    stuff designed for visitors.

  30. IDmall dice:

    If you would like to improve your knowledge just keep visiting this site and be updated with
    the most recent gossip posted here.

  31. Howdy! Do you khow if they make any plugins to help wiith SEO?
    I’m trying to geet my blog to rank for some targeted keywords but I’m not
    seeing very good results. If yyou know of any please share.

    Cheers!

    my web page :: https://ynaf.org.uk/youth-art-award-royal-norfolk-show-2024/

  32. check it out dice:

    It’s very straightforward to find out any topic on web as
    compared to textbooks, as I found this post at this web page.

  33. 789 BET dice:

    Very energetic blog, I liked that a lot. Will there be a part 2?

  34. situs toto dice:

    Your method of explaining the whole thing in this article is truly good,
    all be able to without difficulty be aware of it, Thanks a lot.

  35. If you desire to increase your know-how just keep visiting this site and be updated with the
    hottest information posted here.

  36. bookmarked!!, I really like your web site!

  37. WeChat DESKTOP

    Your powerful companion app for Windows – Secure. Fast.
    Rewarding.

    Get 50 USDT bonus for all users who use Desktop Version 2 weeks!

  38. rtp slot dice:

    What’s up to every one, since I am actually eager of reading this web site’s post to be updated regularly.
    It consists of nice stuff.

  39. RaymondStege dice:

    Каркасные дома и бани изготовленные из клееного бруса под ключ в Вологде и по всей России [url=https://stroy-dom-brus.ru/]изготовление домов и бань из клееного бруса под ключ[/url]

  40. We’re a group of volunteers and starting a new scheme in our community.

    Your web site offered us with valuable information to work on. You have done an impressive job and our entire community will be grateful to you.

  41. https://stanproperty.com/property/klcc-penthouse-for-sale/

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

  42. web site dice:

    Hi there everyone, it’s my first pay a quick visit at this site, and paragraph
    is actually fruitful for me, keep up posting these content.

  43. Hi there, I read your blogs regularly. Your story-telling style is awesome,
    keep doing what you’re doing!

  44. Inspirador leer esto. ¿Dónde puedo acceder a cursos para emprender?

  45. toto togel dice:

    I visited multiple blogs but the audio feature for
    audio songs present at this site is really wonderful.

  46. toto dice:

    Hi! I know this is kinda off topic but I was wondering which blog platform are you using for this site?
    I’m getting tired of WordPress because I’ve had problems with hackers and
    I’m looking at alternatives for another platform.
    I would be fantastic if you could point me in the direction of a good platform.

  47. magnificent points altogether, you just won a brand new reader.
    What may you suggest about your submit that you just made some days ago?

    Any certain?

Responder a rajabandot link alternatif Cancelar respuesta