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

  1. Asking questions are truly good thing if you are not understanding anything totally,
    however this article provides nice understanding yet.

  2. Have you ever thought about adding a little bit more than just your articles?

    I mean, what you say is valuable and everything. But
    imagine if you added some great visuals or videos to give your posts more, “pop”!
    Your content is excellent but with images and clips,
    this site could certainly be one of the most beneficial in its field.
    Great blog!

  3. Hello! І realize this іs sⲟmewhat off-topic but I needed to ɑsk.
    Does managing a ѡell-established bblog ѕuch as yours tke a largе amoᥙnt of work?
    I’m compⅼetely new tօ operating ɑ blog һowever І do write іn my diary on a daily basis.
    I’d like t᧐ start a blog soo Ι can share mу ownn experience ɑnd
    tһoughts Holen Sie sich dieses Zeug online.

    Ꮲlease lеt me know if yߋu havе aany kіnd of suggestions orr tips fоr brand neԝ aspiring
    bloggers. Αppreciate it!

  4. Simply want to say your article is as surprising.
    The clearness in your post is just great and i can assume you’re an expert on this subject.
    Fine with your permission allow me to grab your feed to keep updated
    with forthcoming post. Thanks a million and please carry on the gratifying work.

  5. Your article helped me a lot, is there any more related content? Thanks!

  6. Wow, superb blog layout! How long have you been blogging for?

    you make blogging look easy. The overall look of your web site is wonderful, as well as the content!

  7. I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  8. I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  9. Hmm it appears like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your
    blog. I too am an aspiring blog blogger but I’m still new to the whole thing.
    Do you have any tips for first-time blog writers?
    I’d certainly appreciate it.

  10. Your article helped me a lot, is there any more related content? Thanks!

  11. new dice:

    It’s a shame you don’t have a donate button! I’d most certainly donate
    to this brilliant blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to new updates and will talk about this blog with my Facebook group.
    Talk soon!

  12. Ahaa, its good conversation on the topic of this article here at this webpage, I have
    read all that, so at this time me also commenting here.

  13. Thanks for one’s marvelous posting! I really enjoyed reading it,
    you can be a great author. I will remember to bookmark your blog and
    will eventually come back from now on. I want to encourage you continue your great writing, have a nice afternoon!

  14. My brother recommended І might like this blog. Нe
    ѡɑѕ ߋnce entirely rіght. Ꭲһis submit ɑctually madе my daү.
    Ⲩ᧐u cann’t ϲonsider just hoѡ a lot tіme I had spent for this
    info! Thankѕ!

    Haᴠe ɑ lօok at my site :: このものをオンラインでフォローする

  15. Hello to every body, it’s my first visit of this web site; this webpage contains awesome
    and in fact excellent data for visitors.

  16. I am really grateful to the holder of this website who has shared this impressive post at at this time.

    Check out my homepage … https://cgiwiki.net/index.php/Altitude_Organic_Medicine_Dispensary

  17. goti.pw dice:

    You made some decent points there. I checked on the net for additional information about the issue and found most people will go along with your
    views on this site.

  18. It’s hard to find knowledgeable people in this particular subject,
    however, you sound like you know what you’re talking about!
    Thanks

  19. I have been browsing online more than three hours today,
    yet I never found any interesting article like yours. It is pretty worth enough for me.

    In my view, if all webmasters and bloggers made good content as you did, the net will be much more useful
    than ever before.

  20. I like this site so much, saved to my bookmarks.

    My web blog … Quick Keto ACV Gummies Review

  21. Good respond in return of this matter with real arguments and
    explaining the whole thing about that.

  22. Greetings from Los angeles! I’m bored to tears at work so I decided to browse your website on my
    iphone during lunch break. I love the information you present here and
    can’t wait to take a look when I get home. I’m amazed at how quick your blog loaded on my
    phone .. I’m not even using WIFI, just 3G ..
    Anyhow, good site!

  23. When a player you refer signs up and deposits, you
    will commonly get bonus fundss orr bonus spins.

    my wweb page: 카지노사이트

  24. casino79.in dice:

    Initially, Baccarat is betting by means of a precise ability
    to amuse.

    Stop by my webpage :: casino79.in

  25. Thank you for any other wonderful article. Where else could anyone get that kind of information in such an ideal means of
    writing? I have a presentation next week, and I’m at the search for such info.

  26. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  27. I every time spent my half an hour to read this webpage’s content every day along with a cup of coffee.

  28. What i don’t understood is in reality how you are not
    really much more smartly-favored than you may be now.

    You’re very intelligent. You recognize thus significantly when it comes
    to this topic, produced me personally believe it from so many various angles.

    Its like men and women aren’t involved until it is one thing to accomplish with Girl gaga!
    Your own stuffs excellent. At all times deal with it up!

  29. Asking questions are actually pleasant thing if you are
    not understanding something entirely, but this paragraph gives
    fastidious understanding yet.

  30. I enjoy looking through an article that can make
    people think. Also, thank you for permitting me to comment!

  31. I like the valuable information you provide on your articles.

    I’ll bookmark your blog and take a look at once more right here
    frequently. I’m somewhat certain I’ll learn a lot of new stuff right here!
    Good luck for the next!

    My web page Healthy Visions Keto Gummies

  32. I used to be recommended this blog by means of my cousin. I am no longer positive whether
    or not this put up is written by him as nobody else know such specific approximately my difficulty.
    You’re incredible! Thank you!

  33. Learn here dice:

    This tool can analyze a customer’s playing performance in an attempt to curb any negative
    habits or playing types.

    Herre is my page – Learn here

  34. Cheri Church dice:

    If you would like to take a good deal from this piece of writing then you have to apply such methods to your won blog.

    My web-site http://multi-net.su/user/LRMLena84162429/

  35. Does your site have a contact page? I’m having a tough time locating
    it but, I’d like to send you an e-mail. I’ve got some creative ideas for your blog you might be interested in hearing.
    Either way, great website and I look forward to seeing it grow over time.

  36. Please let me know if you’re looking for a author for
    your site. You have some really great articles and I
    think I would be a good asset. If you ever want
    to take some of the load off, I’d love to write some articles for your
    blog in exchange for a link back to mine. Please blast me an email if interested.
    Thanks!

  37. As soon as I discovered this internet site I went on reddit to share some of
    the love with them.

    Also visit my blog post :: TotalRx CBD Reviews

  38. Only if that certain on the web casino Korea functions with a valid licencee from an established authorityy overseas,
    suh as MGA or Curaçao eGaming.

    Here is my web site – get more info

  39. casino79.in dice:

    Meanwhile, we’ve collected numerous casino web site designs for inspiration.

    Here is my web pzge :: casino79.in

Agrega tu comenatio