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

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

  2. Mickie dice:

    I am actually thankful to the holder of this website who has shared this fantastic paragraph at at this place.

  3. Three tickets sold in Arkansas, Georgia and Pennsylvania matched 5,
    winning $1 million each and every.

  4. I’m really enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit
    more often. Did you hire out a designer to create your
    theme? Fantastic work!

  5. Fidelia Legg dice:

    Fast-forward to July 2010 when Tv critic Alessandra Stanley revealed a
    now-infamous article about “Mad Men” wherein she mentioned key plot factors of the present’s fourth season With no spoiler alert warning.
    In 2011 CBS sued a man named Jim Early for posting spoilers about the truth present “Survivor” on a web site called “Survivor Sucks.” The spoilers
    precisely gave away key details about two seasons of the show.
    However (SPOILER ALERT), although the Thebans gained the battle, they ultimately sued for peace because
    their leaders died. In that spirit, if you’ve got simply crawled out
    from beneath the proverbial rock and are questioning whether or not Frodo
    ever does get that ring into Mount Doom, the answer is (spoiler):
    Sort of. Plays get a month, books three months and
    operas a century. Barnes & Noble gives greater than twice as many digital books as Amazon. That
    permits you to spice up the storage capability of the machine to 36 megabytes, greater than twice that of the essential iPad.

    Also visit my homepage … เว็บตรง

  6. Learn here dice:

    This feature also lets you track your job applications from inside the web site.

  7. Wow! Thank you! I permanently needed to write on my blog something like that. Can I include a part of your post to my blog?

    My homepage: https://sunloft-paros.gr/it/2016/11/15/prima-immagine/

  8. My brother recommended I might like this website. He was once entirely right.
    This put up truly made my day. You can not
    imagine just how so much time I had spent for this info!
    Thank you!

  9. Please let me know if you’re looking for a article author
    for your blog. You have some really great posts 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 e-mail if interested. Kudos!

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

  11. View website dice:

    Bridgewater replaced Tagovailoa soon after his concussion scare last week, and hasn’t
    accomplished also badly.

  12. You actually make it appear so easy along with your presentation however
    I to find this matter to be really one thing that I think I would never understand.
    It seems too complex and very broad for me. I’m taking a look forward in your subsequent post, I will try
    to get the dangle of it!

  13. Magnificent beat ! I would like to apprentice while
    you amend your web site, how could i subscribe for a blog site?
    The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear concept

  14. binance luna dice:

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

  15. If you are not one of these players, here’s a fast intro
    to available baccarat casino games.

  16. Learn more dice:

    Carry out normal workplace clerical help perform with accuracy and adequate speed.

  17. View website dice:

    Depositing and withdrawing our cryptocurrency with one particular click was
    also easier than we expected it to be.

  18. Right here is the right webpage for anyone who wishes to understand this
    topic. You realize so much its almost hard to argue with you (not that I actually would
    want to…HaHa). You definitely put a new
    spin on a topic that’s been discussed for many years.

    Great stuff, just excellent!

  19. more info dice:

    A full home, which is a hand consisting of a three-of-a-type and a pair.

  20. Hi there just wanted to give you a quick heads up
    and let you know a few of the pictures aren’t loading properly.
    I’m not sure why but I think its a linking issue. I’ve tried it in two different web browsers and both show the same outcome.

  21. I know this website offers quality based posts and additional data, is there any other web site which provides these kinds of data in quality?

  22. Go here dice:

    These will usually call for you to deposit income into your account to be taken benefit of.

  23. opart4 dice:

    I always spent my half an hour to read this website’s articles or reviews daily along with a
    cup of coffee.

  24. Hey would you mind letting me know which web host you’re using?
    I’ve loaded your blog in 3 different web browsers and I must
    say this blog loads a lot faster then most. Can you suggest a good internet hosting
    provider at a honest price? Thank you, I appreciate it!

  25. Lidia dice:

    Folks interested in becoming a Deputy U.S. Marshal are encouraged
    to build or update their existing USAJOBS accounts and to set up their notice for U.S.

    my webpage :: Lidia

  26. astrikos dice:

    Ahaa, its nice conversation about this post here at this web site, I have read
    all that, so now me also commenting at this
    place.

  27. Cindi Raynor dice:

    Unless you have actually been sleeping under a travel-loyalty rock, you might have listened to that MGM M life Incentives is now MGM Rewards.

    Here is my homepage – https://superdirectorys.com/listings12470168/just-how-to-take-care-of-best-betting-sites-in-korea

  28. I am truly glad to glance at this webpage posts which includes lots of useful information, thanks for providing such information.

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

  30. cnfwkd dice:

    I really like it when people come together and share opinions.
    Great website, stick with it!

  31. Oleh karena itu buat semakin meningkatkan kemenangan bermain slot online kita sarankan untuk memilih game slot gacor dengan bocoran Return-to-player tertinggi. Bocoran RTP live slot pragmatic hari ini selaku admin Return-to-player Slot Gacor berniat menyuguhkan data penting pada seluruh penjudi judi slot gacor mengenai https://www.mbart.dk/malerier-og-skitzer-fra-groenland/attachment/25/ pragmatic play yang lagi hoki ini hari, siang hari maupun malam hari untuk para mania pecinta judi slot.

  32. Useful postings, Appreciate it!

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

  34. Pretty component of content. I simply stumbled upon your website and in accession capital to
    assert that I get in fact loved account your weblog
    posts. Anyway I will be subscribing in your augment
    or even I achievement you get admission to consistently quickly.

  35. This paragraph will assist the internet users for setting up new webpage or even a weblog from start to end.

  36. Amazing blog! Do you have any recommendations for aspiring writers?
    I’m hoping to start my own blog soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress
    or go for a paid option? There are so many options out there that I’m totally overwhelmed ..
    Any recommendations? Kudos!

  37. Spot on with this write-up, I truly feel this
    amazing site needs far more attention. I’ll probably be back again to
    see more, thanks for the information!

  38. We’re a group of volunteers and opening a new scheme in our community. Your web site offered us with valuable info to work on. You’ve done an impressive job and our whole community will be grateful to you.

    my webpage: http://water.vouvstudio.com/bbs/board.php?bo_table=free&wr_id=121404

  39. 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.

  40. Aw, this was a very good post. Finding the time and actual effort to generate a really good article? but what can I say? I hesitate a whole lot and don’t seem to get nearly anything done.

    Stop by my website; http://pls.wtf/tagfreeskintagremoverreviews701887

  41. I have been exploring for a little bit for any high quality articles or blog posts
    on this kind of area . Exploring in Yahoo I
    eventually stumbled upon this site. Studying this info So i am satisfied to show that I’ve a very just right uncanny feeling I came upon just what I
    needed. I most no doubt will make certain to do not omit this website
    and give it a glance on a relentless basis.

  42. An impressive share! I’ve just forwarded this
    onto a colleague who had been conducting a little research on this.
    And he in fact ordered me dinner due to the fact that I discovered it for him…

    lol. So allow me to reword this…. Thank YOU for the meal!!
    But yeah, thanx for spending the time to talk about
    this issue here on your internet site.

  43. 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.

  44. Madge dice:

    Job listings span a assortment of categories, from programming to sales.

    Have a look at my web page :: Madge

  45. Hi there would you mind sharing which blog platform you’re using?
    I’m looking to start my own blog soon but I’m having a difficult time deciding
    between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and
    style seems different then most blogs and I’m looking for something unique.
    P.S My apologies for getting off-topic but I had to ask!

  46. Many thanks. Awesome information!

Agrega tu comenatio