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. It’s a pity you don’t have a donate button! I’d without a doubt donate to
    this superb blog! I suppose for now i’ll settle for bookmarking and adding your RSS
    feed to my Google account. I look forward to fresh updates
    and will talk about this blog with my Facebook group.
    Chat soon!

  2. Nice blog here! Also your site loads up very fast!

    What web host are you using? Can I get your affiliate link to
    your host? I wish my website loaded up as fast as yours lol

    Take a look at my webpage … bactrack keychain breathalyzer

  3. I constantly spent my half an hour to read this webpage’s articles or reviews everyday along with a cup of coffee.

  4. cuntfucker dice:

    Hеllo to all, the ⅽontents present at this site arе in fact amazing ffor
    peοple knowledge, well, keep up the good work fellows.

  5. learn more dice:

    Good way of explaining, and nice post to take information about my presentation topic, which i
    am going to deliver in school.

  6. nimabi dice:

    Thank you very much for sharing, I learned a lot from your article. Very cool. Thanks. nimabi

  7. Today, while I was at work, my cousin stole my iPad and tested
    to see if it can survive a forty foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and
    she has 83 views. I know this is entirely off topic but I had to
    share it with someone!

  8. Hey there this is somewhat 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 advice from someone with experience. Any help would be greatly appreciated!

  9. nimabi dice:

    Thank you very much for sharing, I learned a lot from your article. Very cool. Thanks. nimabi

  10. WOW just what I was searching for. Came here by searching for sbobet

  11. Undeniably consider that which you stated. Your favorite
    reason seemed to be on the internet the easiest factor to keep in mind of.
    I say to you, I certainly get irked while other folks consider issues that
    they plainly don’t realize about. You managed to hit
    the nail upon the highest and also outlined out the whole thing without having side-effects , other folks
    could take a signal. Will probably be again to get more.

    Thank you

  12. Cool blog! Is your theme custom made or did you download it from
    somewhere? A theme like yours with a few simple adjustements would really
    make my blog jump out. Please let me know where you got your design. Bless you

  13. cocknob dice:

    Hello woսld you mind stating which blog platform you’re wοrking
    with? І’m planning to start my own blog sоon bᥙt I’m having а tough time maҝing a
    decision between BlogEngine/Wordpreѕs/B2evolution and Drupal.
    Thhe reason Ι ask is because your design and style seems
    different then most blog and I’m looking for
    something uniգue. P.Ⴝ My apolkgies for gettinhg off-topic but I had
    to ask!

    My homepage; cocknob

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

  15. baca disini dice:

    Tһanks foг finally writing aboᥙt >Infraеstructura como códiցo – Politraining <Liked it! https://xdpascal.com/index.php/User:CandelariaHammet

  16. I like the valuable info you provide in your articles.
    I will bookmark your weblog and check again here frequently.
    I am quite sure I’ll learn plenty of new stuff right here!
    Best of luck for the next!

  17. What’s up, its nice post regarding media print, we
    all be aware of media is a fantastic source of data.

  18. Debbra dice:

    I simply couldn’t leave your site prior to suggesting that I actually enjoyed
    the standard info a person supply in your guests? Is going to be back often to investigate
    cross-check new posts

  19. When someone writes an piece of writing he/she keeps the plan of a user in his/her mind that how a user can know it. Thus that’s why this post is perfect. Thanks!

  20. Wonderful items from you, man. I have take note your stuff prior to and
    you are simply too magnificent. I actually like what you have received here,
    certainly like what you are saying and the way in which by which you assert it.
    You are making it entertaining and you continue to care for to keep it wise.
    I can not wait to learn far more from you. That is actually a terrific site.

  21. Hi! This is my first comment here so I just wanted to give a
    quick shout out and say I truly enjoy reading through your blog posts.

    Can you suggest any other blogs/websites/forums that deal with the same subjects?

    Thanks a ton!

  22. Hello! I know this is kind of off-topic however I had to ask. Does operating a well-established blog such as yours take a massive amount work? I am completely new to running a blog but I do write in my diary everyday. I’d like to start a blog so I will be able to share my own experience and thoughts online. Please let me know if you have any recommendations or tips for new aspiring bloggers. Appreciate it!

    Take a look at my website http://eventsafe.us/__media__/js/netsoltrademark.php?d=adarshexport.com%2Fgmedia%2Findo_nepalcarpets-jpg%2F

  23. It’s perfect 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 want to suggest
    you few interesting things or suggestions.
    Maybe you could write next articles referring to this article.
    I want to read more things about it!

  24. Greetings! Very helpful advice within this article! It is the little changes which will make the biggest changes. Thanks for sharing!

  25. I’m gone to say to my little brother, that he should also visit this weblog on regular basis to take updated from most recent news.

  26. I will right away snatch your rss as I can not to find your e-mail subscription hyperlink or newsletter service.
    Do you have any? Kindly permit me recognize in order that I may subscribe.
    Thanks.

  27. I am now not sure where you are getting your information,
    however good topic. I must spend some time studying much
    more or working out more. Thank you for fantastic information I used to be looking
    for this info for my mission.

  28. Pretty! This was a really wonderful article. Many thanks for providing this info.

    Here is my blog post; portable breath test

  29. hello banana dice:

    These are actually enormous ideas in regarding blogging. You have touched some nice points here. Any way keep up wrinting.

  30. butt-fuck dice:

    Yоu actually make it seem sо easy with your presentation but I find
    this topic to be actually sometһing which I
    think I wоuld neever understand. It sewms too complicated and
    extremely broаd for me. I’m looking forwarⅾ ffor your next post, I’ll try to get the hang ߋf it!

  31. What’s up colleagues, pleasant piece of writing and fastidious urging commented here, I am
    truly enjoying by these.

  32. 戴秉国 dice:

    continuously i used to read smaller articles which also clear
    their motive, and that is also happening with this article which I am reading at this time.

  33. barface dice:

    Hi theгe colleagᥙes, its great pkst concerning teachingand fully exрlaineⅾ,
    kewep it up all the time.

  34. Howdy! I know this is kinda off topic nevertheless I’d
    figured I’d ask. Would you be interested in exchanging links or maybe guest writing
    a blog post or vice-versa? My website addresses a lot of the same subjects as yours and I
    think we could greatly benefit from each other. If you are interested
    feel free to shoot me an e-mail. I look forward to hearing from you!
    Great blog by the way!

  35. Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.

  36. I think the admin of this web page is really working hard for his site,
    because here every information is quality based material.

  37. aroused dice:

    Thanks a ƅunch for sharing tһis witһ alll folks you actually
    realіze what you’rе talking approximately!
    Bookmarқed. Pease also seek advice from my site =).We could have a link trade arrangement between us

  38. Hello There. I found your blog using msn. This is a very well written article.

    I will make sure to bookmark it and come back to read more of your useful information. Thanks for the post.
    I’ll certainly return.

  39. Your style is very unique in comparison to other
    folks I have read stuff from. Thank you for posting when you’ve
    got the opportunity, Guess I will just bookmark this web
    site.

    my web-site: technology online news journal

  40. clamdiver dice:

    yߋu arе truly a ցood webmaster. The website loadіjng pace is amazing.

    It ѕeems that you are doing any unique trick. In addition, The contents arre masterpiece.
    you have donhe a wonderfᥙl joob inn this matter!

  41. bitchin dice:

    Riɡht now it appears like Μovable Type is tһe top ƅlogging platform
    ⲟut there right now. (from what I’ve read) Is that what you’re using оn your blog?

  42. I ⅽould not resist commenting. Perfectly ѡritten!

    my homepɑցe :: home interior design tips

  43. buttmuncher dice:

    Noemally I don’t learn post on blogs, howeѵer I
    wish to say that this write-up vеry compelled me too try and do
    so! Yoᥙr writinjg style hass beеn surprіseⅾ me.
    Thanks, quite geat post.

  44. cockblocker dice:

    excеllent issueѕ altogether, yoᥙ just wwon a new reader.
    What may you recommend about your post that you just
    made some days inn the ρast? Any positive?

  45. Thanks , I’ve just been looking for info
    approximately this topic for ages and yours is
    the best I have discovered till now. But, what in regards to the conclusion? Are you sure about the source?

  46. Hi there! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa? My website addresses a lot of the same subjects as yours and I feel we could greatly benefit from each other. If you happen to be interested feel free to send me an e-mail. I look forward to hearing from you! Fantastic blog by the way!

Agrega tu comenatio