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

  1. certainly like your web-site but you need to take a look at the spelling on quite
    a few of your posts. Many of them are rife with spelling
    issues and I to find it very bothersome to inform the reality however
    I will definitely come again again.

  2. Hello! This is my first comment here so I just wanted to give a quick shout out and tell you I truly
    enjoy reading through your articles. Can you recommend any other blogs/websites/forums that deal with the same
    subjects? Thanks for your time!

  3. 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/ru/register?ref=UM6SMJM3

  4. Very good info. Lucky me I recently found your blog by accident (stumbleupon). I’ve book marked it for later!

    Also visit my website; http://social.demo1.dedicatedhost247.com/EricaBurdette8

  5. 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?

  6. Pretty! This has been an incredibly wonderful post.
    Thank you for providing these details.

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

  8. Howdy 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 skills so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

  9. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/sl/register-person?ref=IJFGOAID

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

  11. I seldom leave a response, however i did a few searching and wound up here Infraestructura como código. And I do have a couple of questions for you if you tend not to mind. Could it be just me or does it look like some of the remarks come across like written by brain dead individuals? 😛 And, if you are posting at additional places, I’d like to keep up with anything new you have to post. Could you make a list of all of all your public sites like your Facebook page, twitter feed, or linkedin profile?

    Feel free to visit my web site :: http://211.45.131.201/?a%5B%5D=%3Ca+href%3Dhttps%3A%2F%2Frealvitaketo.org%3EReal+Vita+Keto%3C%2Fa%3E%3Cmeta+http-equiv%3Drefresh+content%3D0%3Burl%3Dhttps%3A%2F%2Frealvitaketo.org+%2F%3E

  12. Hello there! This blog post could not be written any better!
    Going through this article reminds me of my previous roommate!

    He constantly kept preaching about this. I will forward this post to him.
    Fairly certain he will have a great read. Many thanks for sharing!

  13. Adolph Moris dice:

    Hi there! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no data backup. Do you have any methods to prevent hackers?

    My blog: http://nkuk21.co.uk/activity/1315361

  14. I’m really impressed with your writing skills as well as with the
    layout on your blog. Is this a paid theme or did you modify it yourself?
    Anyway keep up the excellent quality writing, it
    is rare to see a nice blog like this one these days.

  15. Today, I went to the beach with my children. I found
    a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her
    ear and screamed. There was a hermit crab inside and it pinched her
    ear. She never wants to go back! LoL I know this is completely off topic but I had to tell someone!

  16. I am a website designer. Recently, I am designing a website template about gate.io. The boss’s requirements are very strange, which makes me very difficult. I have consulted many websites, and later I discovered your blog, which is the style I hope to need. thank you very much. Would you allow me to use your blog style as a reference? thank you!

  17. You really make it seem so easy with your presentation but I in finding this matter to be really one thing which I feel I’d by no means understand. It sort of feels too complicated and very vast for me. I am looking ahead on your subsequent publish, I will try to get the cling of it!

    Feel free to surf to my website – http://drevtorg.xyz/profile/CorissaEthridge

  18. Thanks a lot! A good amount of facts!

  19. Hello mates, its impressive paragraph concerning teachingand fully defined, keep it up all the time.

  20. Thanks for shening. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.com/en/register-person?ref=P9L9FQKY

  21. Silvia Crist dice:

    Nice post. I was checking constantly this blog and I am impressed! Very helpful info specially the last part 🙂 I care for such information a lot. I was seeking this particular information for a very long time. Thank you and good luck.

    Take a look at my web site; http://kdjapan.net/hyogo/album/album.cgi?mode=detail&no=35

  22. toptrend dice:

    Excellent web site you have here.. It’s hard to find high quality writing like yours these days.
    I truly appreciate people like you! Take care!!

  23. gate.io dice:

    I may need your help. I’ve been doing research on gate io recently, and I’ve tried a lot of different things. Later, I read your article, and I think your way of writing has given me some innovative ideas, thank you very much.

  24. I’m not that much of a internet reader to be honest but your
    sites really nice, keep it up! I’ll go ahead and bookmark
    your website to come back down the road. All the best

  25. gate.io dice:

    I may need your help. I’ve been doing research on gate io recently, and I’ve tried a lot of different things. Later, I read your article, and I think your way of writing has given me some innovative ideas, thank you very much.

  26. If you desire to increase your know-how only keep visiting this web site and be updated with the newest information posted here.

  27. Log in dice:

    The point of view of your article has taught me a lot, and I already know how to improve the paper on gate.oi, thank you. https://www.gate.io/ru/signup/XwNAU

  28. 주점알바 dice:

    “I have limitless sick time, double vacation (compared to where I was ahead of), and double paid holidays. Plus, it is one hundred% remote.

    Stop by my site … 주점알바

  29. Can you be more specific about the content of your enticle? After reading it, I still have some doubts. Hope you can help me. https://www.binance.com/en/register?ref=P9L9FQKY

  30. Hello, this weekend is pleasant in support of me, because this occasion i am reading this great informative post here at my home.

  31. No matter the service they will normally guarantee their customers are comfy and cred for the whole time.

    Herre is my web-site 오피스텔 스웨디시

  32. Hello! I realize this is kind of off-topic but I had to ask.
    Does managing a well-established website such as yours take a lot of work?

    I am completely new to running a blog but I do write
    in my diary daily. I’d like to start a blog so I will be
    able to share my experience and views online. Please let me know if you have any ideas or tips for new aspiring bloggers.
    Thankyou!

  33. Hey there! Quick question that’s entirely off topic.
    Do you know how to make your site mobile friendly? My site looks weird when browsing from
    my apple iphone. I’m trying to find a theme or plugin that might be able to fix this
    issue. If you have any recommendations, please share.
    Thank you!

  34. I have learn some excellent stuff here. Certainly worth bookmarking for revisiting.
    I surprise how much attempt you place to make the sort of
    fantastic informative site.

  35. gateio dice:

    I may need your help. I’ve been doing research on gate io recently, and I’ve tried a lot of different things. Later, I read your article, and I think your way of writing has given me some innovative ideas, thank you very much.

  36. Hello, Neat post. There is a problem together with your web site
    in web explorer, may test this? IE still is the marketplace leader and a huge portion of
    people will leave out your magnificent writing because of this problem.

  37. Hello! Do you know if they make any plugins to help with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m
    not seeing very good gains. If you know of any please share.
    Appreciate it!

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

  39. You really make it seem so easy with your presentation but I find this topic to
    be really something which I think I would never understand.

    It seems too complex and very broad for me. I’m looking forward for your next post, I
    will try to get the hang of it!

  40. I just like the helpful information you supply to your articles.
    I will bookmark your weblog and take a look at once more right here frequently.
    I’m somewhat certain I’ll learn lots of new stuff proper right here!
    Best of luck for the following!

  41. What’s up colleagues, its fantastic article concerning tutoringand entirely defined, keep it up all the time.

  42. Definitely consider that that you said. Your favourite reason seemed to be at
    the internet the simplest factor to bear in mind of.
    I say to you, I certainly get irked while people consider worries that they just don’t understand about.

    You controlled to hit the nail upon the top and also defined out the whole thing with no
    need side effect , people could take a signal. Will probably be again to get more.

    Thanks

  43. gateio dice:

    I may need your help. I tried many ways but couldn’t solve it, but after reading your article, I think you have a way to help me. I’m looking forward for your reply. Thanks.

  44. First off I would like to say terrific blog! I had a quick question that I’d
    like to ask if you don’t mind. I was curious to know how you center
    yourself and clear your thoughts before writing. I’ve had a difficult time clearing my mind in getting my ideas out there.
    I do enjoy writing however it just seems like the
    first 10 to 15 minutes tend to be lost just trying to figure out how to
    begin. Any recommendations or tips? Many thanks!

Responder a เว็บพนันออนไลน์ เว็บตรงไม่ผ่านเอเย่นต์ Cancelar respuesta