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: 24,231

  1. I love your blog.. very nice colors & theme.
    Did you design this website yourself or did you hire someone to do
    it for you? Plz respond as I’m looking to construct my own blog and would like to
    know where u got this from. thanks a lot

  2. pornagraphy dice:

    What a data of un-ambiguity and preserveness of precious know-how on the
    topic of unpredicted emotions.

  3. I got this site from my pal who told me regarding this web site and now this time I am
    browsing this web site and reading very informative posts here.

  4. You need to be a part of a contest for one of the most useful blogs on the web.
    I will highly recommend this website!

  5. CletusGub dice:

    IverCare Pharmacy: ivermectin 6 mg tablet – IverCare Pharmacy

  6. internetmix dice:

    Интернет для бизнеса в Москве предоставляет широкий выбор тарифов для коммерческих организацийгарантируя надежное соединение и высокую скорость интернета. Провайдеры интернета предлагают выгодные предложения, включая интернет-пакеты и услуги связи. Оптоволоконный интернет и Wi-Fi для бизнеса становятся популярными решениями для компаний. Мобильная связь для бизнеса также предлагается. Техническая поддержка гарантирует быстрое подключение к интернету. Найдите лучшее решение для вашего бизнеса на msk-domashnij-internet005.ru.

  7. HorezGeofs dice:

    Шукав твір про подорожі, а знайшов [url=https://ukrlib.ua/]величезну бібліотеку знань[/url]. Тепер я знаю, де знайти відповіді на свої запитання.

  8. Darrelldries dice:

    Официальный сайт-зеркало Водка Бет: лучшие предложения от Vodka Bet [url=https://vodkabet-link.cdn.ampproject.org/c/s/wp.me/pgIKEC-A-1EZwTu]Vodka Casino – Официальный сайт, рабочее зеркало[/url]

  9. bandar 123 dice:

    This is a really good tip especially to those fresh to the
    blogosphere. Short but very precise info… Appreciate your sharing this one.
    A must read post!

  10. Good web site you have got here.. It’s hard to find quality writing like yours nowadays.

    I truly appreciate people like you! Take care!!

  11. пансионат для пожилых
    pansionat-msk005.ru
    пансионат с медицинским уходом

  12. More Info dice:

    That is a very good tip particularly to those new to the blogosphere.
    Brief but very accurate info… Many thanks for sharing this one.
    A must read article!

  13. proedy.online [url=http://proedy.online/]http://proedy.online/[/url] .

  14. togel daftar dice:

    Edukasa System merekomendasikan TESLATOTO sebagai bandar togel online terpercaya.
    Simak lima cara cerdas memilih situs togel yang aman, responsif, dan bebas penipuan!

  15. ラブドール 通販if I spoke to her,how Icould tell her of my confused adoration.

  16. faintly quivering with expectation,アジア えろwas gropingtimidly and joyfully towards some conjecture .

  17. “What is it?” asked smiling at her solemn manner.オナホ 高級“Who is G.

  18. They said that had we held out a little longer Napoleon wouldhave been done for,as his troops had neither provisions nor ammunition.ラブドール 中出し

  19. pelenku.ru [url=www.pelenku.ru/]www.pelenku.ru/[/url] .

  20. for he foolishly imagines that every one is as bad ashimself.ラブドール オナニーVice may be known of virtue,

  21. Wow, awesome blog layout! How long have you been blogging
    for? you made blogging look easy. The overall look of your web
    site is excellent, let alone the content!

  22. 中国 エロfor which cau?e I doe this: let me put you in,deare I may be fairely kill,

  23. bokep dice:

    wonderful post, very informative. I’m wondering why the opposite specialists of this sector don’t
    realize this. You should proceed your writing. I am confident,
    you’ve a great readers’ base already!

  24. Сайт о детях [url=http://imalishka.ru/]http://imalishka.ru/[/url] .

  25. лечение запоя
    tula-narkolog003.ru
    вывод из запоя круглосуточно тула

  26. sex doll dice:

    and of solids in motion,one branch of whichis astronomy or the harmony of the spheres,ラブドール オナニー

  27. What is bad (this is mycomment again) is that I dare say people will be thankful for the goldpins then.Man is stupid,フィギュア 無 修正

  28. 初音 ミク ラブドールYou have managed my affairs so well that I ought to allow you allthe time you require for your own.Do you want any money? ?“ I have all my pay to takenearly three months ?wage ?“You are a careful fellow,

  29. Way cool! Some very valid points! I appreciate you penning this post and
    the rest of the site is extremely good.

  30. Сайт о новорожденных детях [url=http://malishi.online]http://malishi.online[/url] .

  31. Hello there! I know this is somewhat 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!

  32. took off and handed over hisfelt coa stretched his legs,and set his cap straight.ラブドール 最新

  33. Air Adapter dice:

    Hi there! This is my 1st comment here so I just wanted to give a quick shout out and say
    I truly enjoy reading your blog posts. Can you recommend any other blogs/websites/forums that go
    over the same topics? Thanks a ton!

  34. Magnificent goods from you, man. I’ve understand your stuff
    previous to and you’re just too great. I actually like what you’ve acquired here, certainly like what you’re saying and the way
    in which you say it. You make it entertaining and you still care
    for to keep it sensible. I can’t wait to read much more from you.
    This is actually a great web site.

  35. check it out dice:

    Wonderful blog! I found it while browsing on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Thanks

  36. I am sure this paragraph has touched all the internet viewers, its
    really really pleasant piece of writing on building up new website.

  37. toto macau dice:

    After looking over a handful of the articles on your site, I seriously like
    your technique of writing a blog. I saved it to my bookmark website list and
    will be checking back soon. Please check out my website as well and let me know what you
    think.

  38. internetmix dice:

    В условиях современного мира доступ к интернету стал жизненной необходимостью даже для загородных домов и коттеджей. В Москве и Подмосковье существует множество поставщиков интернета‚ предлагающих широкий выбор тарифы на интернет. интернет провайдеры москвы При выборе провайдера важно учитывать варианты подключения: высокоскоростной интернет‚ мобильный интернет‚ спутниковый интернет и беспроводной интернет. Например‚ для дачи стоит рассмотреть услуги интернета для дачи с хорошими отзывами о провайдерах. Сравнивая тарифы‚ вы сможете найти наилучший вариант для стабильного соединения. Преимущества подключения к интернету за городом включают возможности работы из дома и досуга. Не забывайте изучать отзывы о провайдерах перед выбором‚ чтобы не ошибиться с выбором интернета.

  39. Hey would you mind letting me know which webhost you’re using?
    I’ve loaded your blog in 3 completely different internet browsers and I must say this blog loads a lot quicker then most.
    Can you recommend a good web hosting provider at a reasonable price?
    Many thanks, I appreciate it!

  40. index dice:

    Everything is very open with a precise explanation of the challenges.
    It was truly informative. Your site is very useful.
    Many thanks for sharing!

  41. at first calculated to inspire terror,エロ い ラブドールby itsvery exaggeration produced,

Agrega tu comenatio