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

  1. 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. https://accounts.binance.com/en/register-person?ref=FIHEGIZ8

  2. Every delivers exceptional variations of each traditional and new games.

    Also visit my web site: http://springridgeclubs.com/web-based-casinos-learn-how-to-take-up/

  3. puzzle rooms dice:

    It’s an amazing trip that will keep you wondering
    right approximately the very surface.

  4. 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. https://accounts.binance.com/sk/register-person?ref=JHQQKNKN

  5. You actually mentioned this superbly.

  6. It’s in reality a nice and helpful piece of
    information. I am glad that you just shared this useful info with us.
    Please stay us up to date like this. Thanks for sharing.

    My web site world of games online (kostenlosespielepc12998.fare-blog.com)

  7. Our objective is to finish the job efficiently without endangering the results.

  8. reel kingdom dice:

    Hello! I understand this is sort of off-topic however I had to ask.

    Does running a well-established website like yours require a large amount of work?
    I’m completely new to running a blog but I do write in my journal
    daily. I’d like to start a blog so I can share my personal experience and feelings online.
    Please let me know if you have any kind of suggestions or tips for brand new
    aspiring blog owners. Thankyou!

  9. The most preferred Baccarat games are identified as Punto Banco or Chemun de Fer.

    Also visit my web blog 바카라사이트

  10. This article opened my eyes, I can feel your mood, your thoughts, it seems very wonderful. I hope to see more articles like this. thanks for sharing.

  11. Saved as a favorite, I really like your site!

  12. Hello tһere! Do you know if they make any plugins tto help with
    Search Engine Optimization? I’m tdying tо get my
    blog to rank foг some targeted кeywords but I’m
    not seeing very good gains. If you know of any please share.
    Kudos!

  13. 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. https://accounts.binance.com/en/register-person?ref=RQUR4BEO

  14. Stephan dice:

    Hello, i believe that i noticed you visited my weblog thus i came to go back
    the favor?.I’m trying to to find issues to improve my web site!I suppose its ok
    to use a few of your ideas!!

  15. porn rape dice:

    I’m not that much of a online reader to be honest but your sites really nice, keep it up!
    I’ll go ahead and bookmark your website to come
    back later. Many thanks

  16. Daniele Hair dice:

    Thanks a lot! Terrific information!

  17. Attractive element of content. I simply stumbled upon your site and in accession capital to say that I acquire in fact loved account your blog posts. Any way I’ll be subscribing in your augment and even I achievement you get right of entry to consistently quickly.

  18. This website was… how do I say it? Relevant!! Finally I’ve found something which helped me. Thanks!

  19. Do you mind if I quote a few of your articles as long as I provide credit and sources back to your blog? My blog is in the very same area of interest as yours and my users would certainly benefit from a lot of the information you present here. Please let me know if this okay with you. Thanks a lot!

  20. An impressive share! I have just forwarded this onto a co-worker
    who had been doing a little homework on this.

    And he actually ordered me dinner because I stumbled upon it for
    him… lol. So allow me to reword this…. Thank YOU for the meal!!
    But yeah, thanks for spending the time to discuss this matter here on your website.

  21. Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/zh-CN/register-person?ref=S5H7X3LP

  22. 부달 dice:

    Awesome blog! Do you have any tips and hints for aspiring
    writers? I’m hoping to start my own site soon but I’m a little lost on everything.
    Would you advise starting with a free platform like WordPress or go for a paid
    option? There are so many choices out there that I’m totally overwhelmed ..

    Any recommendations? Bless you!

  23. vammebel.ru dice:

    Hi there, yeah this article is actually pleasant and I have learned lot of things from it regarding blogging. thanks.

  24. Registrácia dice:

    Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.com/sk/register-person?ref=PORL8W0Z

  25. нужна медицинская справка

  26. Pretty ѕection of content. І simply stumbled սpon yoour site аnd in accession capital to claim that I get іn fact enjoyed account үߋur weblog posts.

    Αnyway I’ll be subscribing in y᧐ur feeds or even I sccess үou get admission to persistently գuickly.

    Looк at my web page :: {Link Alternatif Ahha4d}

  27. I love what you guys are usually up too. This sort of clever work and coverage! Keep up the good works guys I’ve added you guys to my personal blogroll.

  28. porrnhub dice:

    I got this web site from my pal who shared with me concerning this web
    page and at the moment this time I am browsing this
    web page and reading very informative posts at this place.

  29. I got this web site from my buddy who told me regarding this site and
    now this time I am visiting this website and reading very informative articles
    here.

  30. First of all I would like to say superb blog!

    I had a quick question in which I’d like to
    ask if you don’t mind. I was interested to find out how you center yourself and clear your head prior
    to writing. I have had a difficult time clearing my mind in getting my thoughts out there.
    I truly do enjoy writing however it just seems like the first 10 to 15 minutes are wasted simply just trying to
    figure out how to begin. Any recommendations or hints?

    Thank you!

  31. 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? https://accounts.binance.com/tr/register-person?ref=S5H7X3LP

  32. Its not my first time to go to see this site, i am visiting this web
    site dailly and obtain nice facts from here daily.

  33. Anónimo dice:

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://accounts.binance.com/ur/register?ref=T7KCZASX

  34. A fascinating discussion is worth comment. I believe that you should write more about this subject, it may not be a taboo matter but typically people
    don’t speak about these issues. To the next! Kind regards!!

  35. I used to be able to find good information from your blog articles.

  36. Hey! Do you use Twitter? I’d like to follow you if that would be okay. I’m definitely enjoying your blog and look forward to new posts.

  37. This design is spectacular! You most certainly know how to keep
    a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Great job.
    I really loved what you had to say, and more than that,
    how you presented it. Too cool!

  38. Thank you so much man. Passing along valuable information is always a good thing.
    Paying it forward is a way to show appreciation for what I’ve been given. This is how everyone should feel!

  39. I absolutely love your website.. Pleasant colors & theme.
    Did you build this web site yourself? Please reply back as I’m
    trying to create my own site and would like to find out where you got this from or just what the theme is called.
    Kudos!

  40. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three emails with the same comment. Is there any way you can remove me from that service? Bless you!

  41. Howdy! I know this is kind of off topic but I was wondering if you knew where I could find a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!

  42. Nice blog here! Also your site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my site loaded up as fast as yours lol

  43. daachka.ru dice:

    Thank you for some other informative web site. Where else may just I am getting that kind of info written in such a perfect approach? I have a undertaking that I am simply now operating on, and I have been at the glance out for such information.

  44. Non-EU studdnts in Spain are permitted to function only part-time jobs under their study visa permit.

    my site … 주점 알바

Responder a 100 USDT almak icin kaydolun. Cancelar respuesta