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: 21,535

  1. It’s an amazing article in support of all the web viewers; they will get benefit from it I am sure.

  2. Wonderful work! That is the type of information that should be
    shared across the web. Shame on the search engines for not positioning
    this publish upper! Come on over and consult with my site .
    Thanks =)

  3. Remarkable things here. I’m very happy to peer your post.
    Thanks so much and I am having a look forward to contact you.
    Will you kindly drop me a e-mail?

  4. all the time i used to read smaller articles or reviews that as well
    clear their motive, and that is also happening with this paragraph which I am reading here.

  5. I’m not sure why but this blog is loading incredibly slow for me.
    Is anyone else having this issue or is it a problem on my
    end? I’ll check back later on and see if the problem still exists.

  6. Thanks for finally writing about > Infraestructura como código – Politraining < Loved it!

  7. Just desire to say your article is as astounding.
    The clarity in your post is just great and i can assume you are an expert on this subject.
    Fine with your permission allow me to grab your feed to keep updated with forthcoming post.
    Thanks a million and please carry on the rewarding work.

  8. I was curious if you ever considered changing the structure of your blog?
    Its very well written; I love what youve got to say.

    But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or two images.

    Maybe you could space it out better?

  9. I’m curious to find out what blog platform you have been using?
    I’m experiencing some minor security issues with my latest site and
    I would like to find something more safeguarded.

    Do you have any solutions?

  10. Henrycrine dice:

    In the UAE, renting a car from the best car rental company [url=https://sellrentcars.com/cars/renting-an-audi-in-dubai-key-benefits-for-customers-and-useful-tips.html]https://sellrentcars.com/cars/renting-an-audi-in-dubai-key-benefits-for-customers-and-useful-tips.html[/url]

  11. Freddiecherb dice:

    You’re spot on, helps to hear other opinions.

    On a related note, I saw a reference recently: [url=https://maba-3d-druck.de]check it out[/url]

    Feel free to comment.

  12. babu88 dice:

    Hey There. I found your blog using msn. This is an extremely well written article.
    I’ll be sure to bookmark it and come back to read
    more of your useful information. Thanks for the post. I will certainly
    comeback.

  13. EverettNew dice:

    Аутсорсинг бухгалтерских услуг подходит широкому кругу компаний [url=https://progorodsamara.ru/interesnoe/view/obzor-buhgalterskih-programm-ispolzuemyh-v-rossii]https://progorodsamara.ru/interesnoe/view/obzor-buhgalterskih-programm-ispolzuemyh-v-rossii[/url]

  14. toto login dice:

    This piece of writing is truly a good one it
    assists new the web people, who are wishing for blogging.

  15. Hurrah! In the end I got a website from where I know how to truly take helpful data concerning
    my study and knowledge.

  16. zepelin01 dice:

    I read this paragraph fully regarding the resemblance of most up-to-date and earlier technologies, it’s remarkable article.

    Feel free to visit my web site – zepelin01

  17. I blog often and I really thank you for your information. This great article
    has truly peaked my interest. I’m going to book mark your site and keep checking for new information about once per week.
    I opted in for your Feed as well.

  18. I know this web site offers quality dependent posts and additional data, is there any other
    site which gives these kinds of things in quality?

  19. Thank you for sharing your info. I truly appreciate your efforts and I am waiting for your next post thank you once again.

  20. Thanks for finally writing about > Infraestructura como código – Politraining < Liked it!

  21. Your style is really unique in comparison to other
    folks I’ve read stuff from. Thank you for posting
    when you’ve got the opportunity, Guess I will just bookmark this blog.

  22. I was wondering if you ever thought of changing the layout of your
    blog? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of
    content so people could connect with it better. Youve got
    an awful lot of text for only having 1 or 2 pictures.
    Maybe you could space it out better?

  23. Howdy, i read your blog occasionally and i own a similar one and i was just curious if you get a loot of spam remarks?

    If so how do you protect against it, any plugin or anything you can advise?
    I get so much lately it’s driving me insane so any assistance is very much
    appreciated.

  24. Hi there! I simply wish to offer you a huge thumbs up for your excellent info you have here on this post.
    I am coming back to your site for more soon.

  25. donkey kong dice:

    whoah this weblog is magnificent i like studying your
    posts. Keep up the good work! You recognize, many people are hunting around for this information, you can help them
    greatly.

  26. I like what you guys tend to be up too. This kind of clever
    work and coverage! Keep up the good works guys I’ve added you guys to my own blogroll.

  27. Its such as you learn my thoughts! You seem to grasp so much approximately this,
    such as you wrote the guide in it or something.
    I believe that you could do with a few percent to power the message house a little bit, however other than that, that
    is magnificent blog. An excellent read. I will definitely be back.

  28. I’m not sure where you’re getting your information, but great topic.
    I needs to spend some time learning much more or understanding
    more. Thanks for great info I was looking for this information for my mission.

    Feel free to visit my page; เว็บไซต์การศึกษา

  29. With havin so much content and articles do you ever run into any issues of plagorism or copyright
    infringement? My website has a lot of unique content I’ve
    either authored myself or outsourced but it looks like a lot of it
    is popping it up all over the internet without my agreement.
    Do you know any solutions to help stop content from
    being ripped off? I’d definitely appreciate it.

  30. I’m gone to tell my little brother, that he should also go to see this webpage on regular basis
    to get updated from hottest information.

  31. Have you ever thought about publishing an ebook or
    guest authoring on other blogs? I have a blog centered on the same ideas you discuss and would really like to have you
    share some stories/information. I know my viewers would
    value your work. If you’re even remotely interested, feel free to shoot me an e-mail.

  32. pajak dice:

    Hey there! I know this is kinda off topic
    but I was wondering if you knew where I could
    locate a captcha plugin for my comment form?

    I’m using the same blog platform as yours and I’m having trouble finding one?
    Thanks a lot!

  33. Jeffery dice:

    Awesome article! Planning my Port Antonio trip right now and stumbled on https://www.itimaker.com — an AI itinerary planner that auto-optimizes routes
    and budgets. Thought fellow readers might find it handy too.
    Cheers!

  34. pornhub dice:

    Thiis iis very іnteresting, Yߋu are a vry skilled blogger.
    Ι’ve joined yօur feed and look forward tօ seeking more of yоur magnificent post.
    Also, I’ve shared үoսr website in my social networks!

    Ꮇy homepaɡe pornhub

  35. I blog frequently and I really appreciate your information. This great article has really peaked
    my interest. I will take a note of your blog and keep checking for new information about
    once a week. I opted in for your RSS feed as well.

  36. I would like to thank you for the efforts you’ve put in penning this
    site. I’m hoping to check out the same high-grade content by you
    later on as well. In fact, your creative writing abilities has inspired
    me to get my own, personal website now 😉

  37. I have read so many articles or reviews about the
    blogger lovers but this piece of writing is really a
    pleasant article, keep it up.

  38. slot bet 200 dice:

    Very shortly this website will be famous among all blogging people, due to it’s fastidious articles

  39. Hi to all, the contents present at this site are really amazing for people knowledge, well, keep up the nice work fellows.

  40. Kennethpoice dice:

    no clue what this is but hey this just appeared: [url=https://lackdoktor-roberto-gulizia.de]looks alive at least[/url] then because clearly I had nothing better to do and then this happened [url=https://crnmedia.es]don’t ask[/url] I regret nothing

  41. Redfern dice:

    Nice post. I learn something totally new and challenging on sites
    I stumbleupon every day. It will always be interesting to read articles from other authors and practice something from their web sites.

  42. read more dice:

    If some one wishes to be updated with latest technologies
    after that he must be pay a quick visit this web page and be up to date
    every day.

  43. liveluxe.me dice:

    I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored material stylish.
    nonetheless, you command get got an edginess over that you wish be delivering the following.
    unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this hike.

  44. f168it.com dice:

    Howdy! I know this is kinda off topic but I was wondering if you knew where I could get 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!

  45. I like the helpful info you provide in your articles. I’ll bookmark your blog and check again here regularly.
    I’m quite sure I will learn lots of new stuff right here!
    Good luck for the next!

  46. I every time used to read post in news papers but now
    as I am a user of internet thus from now I am using net for content, thanks to web.

  47. root-apk — это замечательный способ улучшить игровой процесс.

    Особенно если вы играете на мобильном устройстве с Android, модификации открывают
    перед вами новые возможности. Я нравится использовать модифицированные версии игр, чтобы удобнее проходить игру.

    Модификации игр дают невероятную возможность
    настроить игру, что делает процесс гораздо интереснее.
    Играя с твиками, я могу создать новый игровой
    процесс, что добавляет новые приключения
    и делает игру более захватывающей.

    Это действительно невероятно, как такие изменения могут улучшить переживания от игры,
    а при этом не нарушая использовать такие игры с изменениями можно без
    особых опасностей, если быть внимательным и следить за обновлениями.
    Это делает каждый игровой процесс лучше контролируемым, а возможности практически выше всяких похвал.

    Советую попробовать такие игры с модами для Android — это
    может добавить веселья в геймплей

  48. Betting 777 dice:

    This post will help the internet visitors for setting up new web site or even a weblog from
    start to end.

  49. I all the time emailed this web site post page to all my friends, as if like
    to read it after that my links will too.

Responder a Eternal Lunesta Cancelar respuesta