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: 15,500

  1. A片 dice:

    Hello just wanted to give you a brief 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 outcome.

    Feel free to surf to my blog post … A片

  2. phone repair dice:

    When someone writes an article he/she maintains the idea of a user in his/her brain that how a user
    can understand it. Thus that’s why this article is amazing.

    Thanks!

  3. I’m extremely inspіred along wiyh youг writing skills
    as smartly as wіth tthe ⅼaуout to your bloց. Is that
    tһi а paid subject or did you cuѕtomize it yourself?

    Either waay stay up the nice quality writing, it is raaгe
    to peer a gгeat blog like this one these days..

  4. The level of detail is remarkable,ensuring both durability and a genuine feel.ラブドール えろ

  5. hoki188 dice:

    Pretty part of content. I simply stumbled upon your weblog and in accession capital to claim that I get in fact enjoyed account your blog posts.

    Anyway I’ll be subscribing for your feeds and even I
    success you get admission to constantly quickly.

  6. Hi this is kinda of off topic but I was wondering if blogs
    use WYSIWYG editors or if you have to manually code with
    HTML. I’m starting a blog soon but have no coding know-how
    so I wanted to get guidance from someone with experience.
    Any help would be enormously appreciated!

  7. Hello Dear, are you actually visiting this web page regularly,
    if so afterward you will without doubt obtain good know-how.

  8. tonic greens dice:

    Having read this I thought it was extremely informative.
    I appreciate you spending some time and energy to put
    this article together. I once again find myself personally spending a significant
    amount of time both reading and posting comments.
    But so what, it was still worth it!

    My page :: tonic greens

  9. Proxiesbuy dice:

    Heya i’m for the first time here. I found this board and
    I find It really useful & it helped me out
    much. I hope to give something back and help others like you aided
    me.

  10. Hey outstanding blog! Does running a blog like this take a great deal of work?
    I have virtually no understanding of programming however I had
    been hoping to start my own blog soon. Anyway, should you have any ideas or
    tips for new blog owners please share. I understand this is off topic
    however I simply needed to ask. Thank you!

  11. new casino dice:

    Yo forum friends, I’m Alex from Romania. I wanna tell you about my
    insane experience with this trending online casino I stumbled on a few
    weeks ago.

    To be honest, I was living paycheck to paycheck, and now
    I can’t believe it myself — I cashed out €384,000 playing mostly slots!

    Now I’m thinking of finally owning an apartment here
    in Split, and investing a serious chunk of
    my winnings into Toncoin.

    Later I’ll probably move to a better neighborhood and start a small business.

    Now I’m going by Tomasz from Poland because I honestly feel
    like a new person. My life is flipping upside down in the best way.

    Tell me honestly, what would you guys do if you had this kinda luck?
    Are you a bit envious right now?

    For real, I never thought I’d be able to help my family.
    It’s all happening so fast!

    Feel free to DM me!

  12. It’s really very complex in this active life to listen news
    on TV, thus I just use web for that purpose, and take the newest
    information.

  13. Kennethpoice dice:

    not sure if this is useful this just appeared: [url=https://fwg-fraktion-birkenheide.de]your call[/url] then because clearly I had nothing better to do bonus round [url=https://study-medicine.de]also weirdly alive[/url] logging off now maybe

  14. The article on how AI is being used to generate music was particularly intriguing,offering a balanced perspective on the benefits and potential drawbacks.ラブドール エロ

  15. klik di sini dice:

    Hello, just wanted to mention, I liked this post.

    It was inspiring. Keep on posting!

  16. çin prn dice:

    Hello There. I found your blog using msn. This is a really well written article.
    I will be sure to bookmark it and come back to read more of
    your useful info. Thanks for the post. I’ll definitely comeback.

  17. his would have been the drumsticks.オナホ フィギュアFor Flask to have presumed to helphimself,

  18. for Roarng Abel had been engaged as one of the fddlerBut the dea of gong had never occurred to her untl Roarng Abelhmself broached t at supper.“You come wth me to the dance,ラブドール 高級

  19. Hey I am so grateful I found your website, I really found you
    by accident, while I was browsing on Yahoo for something
    else, Anyhow I am here now and would just like to say thank you
    for a tremendous post and a all round interesting blog (I also love the theme/design), I don’t have time to read through
    it all at the moment but I have bookmarked it and also added
    your RSS feeds, so when I have time I will be back to read much more, Please do keep up the fantastic
    jo.

  20. embosomed among aged trees.I enjoyed this scene,ラブドール エロ

  21. LLC dice:

    Aw, this was a very nice post. Taking the time and actual effort to generate a
    really good article… but what can I say… I procrastinate a whole lot and don’t manage to get nearly anything done.

  22. Just desire to say your article is as astonishing.
    The clarity in your post is simply excellent and i could assume you’re an expert
    on this subject. Well with your permission allow me to grab your RSS feed to keep updated with forthcoming
    post. Thanks a million and please carry on the rewarding work.

    Also visit my page; tonic greens before and after

  23. Elizabeth was determined,sex dollnor did Sir William atall shake her purpose by his attempt at persuasion.

  24. s hints and additions,endeavour to amuse hercompanions all the way to Longbourn.ラブドール 風俗

  25. Heya i am for the first time here. I came across this
    board and I find It truly useful & it helped me out much.

    I hope to give something back and help others like you helped
    me.

  26. ラブドール エロthat I have always looked forward to yourmarriage with our dear Elizabeth as the tie of our domestic comfort and thestay of my declining years.You were attached to each other from yourearliest infancy,

  27. オナホ フィギュア) Our captain stood upon the deck,A spy-glass in his h A viewing of those gallant whales That blew at every strand.

  28. Hi there to every , since I am actually eager of reading this
    web site’s post to be updated regularly. It consists of fastidious data.

  29. The fetid closeness of the air,ラブドール おすすめand a famishing diet,

  30. One had to thnk of one,ラブドール 高級sdescendant“She got t from the Wansbarra ?sad Olve postvely.

  31. to increase her vexations by dwelling on them.She was confident of having performed her duty,エロ ラブドール

  32. to assure him how happyhe would make them,by eating a family dinner with them at any time,エロ リアル

  33. of most gentlemanlike appearance,えろ 人形walkingwith an officer on the other side of the way.

  34. オナホ フィギュアmost naturalists have recognisedhim for one.He is of moderate octavo size,

  35. ラブドール えろand I sawthe fish play in the waters as they had done a few hours before,they hadthen been observed by Elizabeth.

  36. purple-hooded woods around LakeMstaws.ラブドール 高級A flmy mst hung over them and just above t was afan young crescen Valancy looked at t over her thn leftshoulder.

  37. ラブドールit seemed that we were still asfar inside the spreading Togarite lines as ever.We had stolen garmentsto disguise the girls.

  38. Hi my loved one! I wish to say that this post is amazing, nice written and include almost all significant infos.
    I’d like to peer more posts like this .

  39. for it requires all my fortitude to recall the memory ofthe frightful events which I am about to relate,in proper detail,ラブドール えろ

  40. ‘XXXIIBRAVE THOUGH AGED.REMINISCENCE{The dragon spits fire.オナホ フィギュア

  41. ラブドール おすすめand is all ready forlowering.The heavers forward now resume their song,

  42. We must remember what dear old Shakespeare saysthatcharty thnketh no evl.ラブドール 高級?“Charty! Poppy-cock! ?snorted Uncle Benjamn.

  43. オナホ フィギュアbluff-chested,and with the dignity of athousand monarchs in his lofty,

  44. エロ ラブドールgiving way to everyvariety of thought,reconsidering events,

  45. twenty feet or sobehind her.ラブドールShe and I were growing,

  46. their amiable andbenevolent dispositions,ダッチワイフI persuaded myself that when they shouldbecome acquainted with my admiration of their virtues they wouldcompassionate me and overlook my personal deformity.

  47. I don’t even know how I ended up here, but I thought this post was good.
    I don’t know who you are but certainly you are going to a famous blogger if you aren’t already 😉 Cheers!

  48. Elizabeth was prepared to see him in his glory,エロ リアルand she could not helpfancying that in displaying the good proportion of the room,

Agrega tu comenatio