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

  1. Situs TESLATOTO menghadirkan slot gratis dengan peluang besar penyedia game top, main gratis, mencoba strategi,
    kemenangan besar bisa dicoba langsung .

  2. Jamesbet dice:

    mexican pharmacy for americans: modafinil mexico online – Mexican Pharmacy Hub

  3. mostbet_qbPi dice:

    mostbet.com skachat [url=https://mostbet11062.ru/]https://mostbet11062.ru/[/url]

  4. This post will help the internet viewers for
    creating new weblog or even a blog from start to
    end.

  5. Roccopully dice:

    order azithromycin mexico: Mexican Pharmacy Hub – online mexico pharmacy USA

  6. 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 site to come back down the road.
    All the best

  7. I have been surfing online more than 3 hours lately, but I never discovered any fascinating article like yours.
    It is beautiful price enough for me. In my view,
    if all website owners and bloggers made excellent content
    as you did, the web can be much more helpful than ever before.

  8. I am regular reader, how are you everybody? This post posted at this
    site is in fact pleasant.

  9. A fascinating discussion is worth comment. I do think that you should
    write more on this subject matter, it might not be
    a taboo matter but generally folks don’t talk about these subjects.

    To the next! Best wishes!!

  10. I have read so many articles or reviews about
    the blogger lovers but this article is actually a fastidious paragraph, keep it up.

  11. Very rapidly this web page will be famous amid all blog people, due to
    it’s fastidious posts

  12. togel dice:

    I could not resist commenting. Very well written!

  13. Pretty section of content. I just stumbled upon your
    website and in accession capital to assert that I acquire actually enjoyed account your blog posts.
    Anyway I will be subscribing to your feeds and even I achievement you access consistently fast.

  14. лечение запоя
    vivod-iz-zapoya-orenburg004.ru
    вывод из запоя круглосуточно оренбург

  15. I am actually happy to read this web site posts which
    carries tons of valuable data, thanks for providing these statistics.

  16. Hello there, just became aware of your blog through Google,
    and found that it is truly informative. I’m gonna watch out for brussels.

    I will appreciate if you continue this in future.
    A lot of people will be benefited from your writing.

    Cheers!

  17. check here dice:

    Hi there Dear, are you really visiting this website daily, if so then you will absolutely get pleasant knowledge.

  18. подключить интернет воронеж
    voronezh-domashnij-internet005.ru
    интернет провайдер воронеж

  19. Hi colleagues, pleasant piece of writing and good urging commented
    here, I am actually enjoying by these.

  20. Stevenrem dice:

    Голосовые поздравлялки на мобильный

    Звуковые [url=https://sms-otkritka.ru/]аудио поздравление с днем[/url] поздравлялки по телефону становятся все более запрашиваемыми в модных пользователей. Данная услуга даёт возможность передавать теплые обращения по формате звука автоматически и при этом оперативно.

    # Преимущества голосовых поздравлений

    Основные достоинства включают персональное обращение, эмоциональную мелодику а также опцию включить музыку либо короткие шутки. Адресат немедленно переживает заботу и при этом настроение становится сильно позитивным.

    # Как выбрать формат поздравления

    До того как посылать звуковое поздравление, определите стиль послания: официальный, товарищеский или романтический. Подбор стиля зависит по отношений с адресатом и повода для поздравления.

    # Идеи для текстов голосовых поздравлений

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

    В случае праздника целесообразно подготовить чуть более полное послание с добавлением истории либо прошлых моментов.

  21. приводы somfy [url=https://avtomatika-somfy77.ru/]avtomatika-somfy77.ru[/url] .

  22. Jamesbet dice:

    Mexican Pharmacy Hub: Mexican Pharmacy Hub – Mexican Pharmacy Hub

  23. Howdy! Quick question that’s totally off topic. Do you know how to make your site
    mobile friendly? My weblog 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. Cheers!

  24. Houstonmib dice:

    Indian Meds One [url=http://indianmedsone.com/#]Indian Meds One[/url] buy prescription drugs from india

  25. My brother suggested I may like this web site. He was totally
    right. This publish truly made my day. You can not believe just how much time I had spent for this info!
    Thank you!

  26. Right here is the perfect webpage for anyone who hopes to
    find out about this topic. You know a whole lot its almost
    tough to argue with you (not that I actually
    will need to…HaHa). You certainly put a brand new spin on a
    subject which has been written about for
    many years. Great stuff, just excellent!

  27. план перепланировки [url=https://proekt-pereplanirovki-kvartiry5.ru]https://proekt-pereplanirovki-kvartiry5.ru[/url] .

  28. электрожалюзи стоимость [url=http://www.elektricheskie-zhalyuzi.ru]http://www.elektricheskie-zhalyuzi.ru[/url] .

  29. stellagTug dice:

    [url=https://stellag-belgorod.ru/]Универсальные металлические стеллажи[/url] — это практичное решение для хранения различных предметов, которое можно использовать в самых разных сферах. Такие конструкции созданы с учетом повышенных требований к прочности и надежности. Благодаря продуманной конструкции обеспечивается удобное хранение даже габаритных вещей. На нашем сайте вы найдете широкий выбор стеллажей по оптимальной цене, что делает их подходящими как для частного, так и для коммерческого применения. Оформите покупку стеллажей с быстрой доставкой, а мы подскажем оптимальную модель для ваших задач. В стеллажи каталог включены все доступные конфигурации и параметры. Монтаж можно выполнить самостоятельно без привлечения специалистов. Прочные соединения и устойчивая конструкция обеспечивают устойчивость даже при большой нагрузке. Они применяются для упорядочивания предметов в офисах, складах, мастерских и магазинах. Стеллажи из металла станут надежной основой для вашего хранения на долгие годы.
    https://stellag-belgorod.ru/

  30. Roccopully dice:

    Indian Meds One: п»їlegitimate online pharmacies india – india pharmacy

  31. Hi there friends, fastidious paragraph and nice arguments commented here, I
    am really enjoying by these.

  32. Diplomi_ueea dice:

    купить аттестат за 11 класс в казахстане [url=http://www.arus-diplom23.ru]купить аттестат за 11 класс в казахстане[/url] .

  33. купить официальный диплом с занесением в реестр [url=https://arus-diplom34.ru/]https://arus-diplom34.ru/[/url] .

  34. Good info. Lucky me I found your blog by chance
    (stumbleupon). I’ve book-marked it for later!

  35. Justinstync dice:

    mexico drug stores pharmacies: Mexican Pharmacy Hub – Mexican Pharmacy Hub

  36. Выездная наркологическая помощь – это важный аспект лечения зависимостей‚ который предоставляет экстренную помощь при алкогольной зависимости и наркомании. Выездная наркологическая служба предоставляет профессиональную помощь зависимым‚ включая детоксикацию и кризисную интервенцию. На сайте vivod-iz-zapoya-tula008.ru можно узнать больше о по наркологии‚ ознакомиться с методами лечения наркомании и восстановлении на дому. Конфиденциальное лечение зависимых позволяет сохранить конфиденциальность. Важно также помнить о поддержке родственников‚ что способствует в процессе восстановления. Программа реабилитации после зависимости включает профилактику зависимостей и психотерапию‚ что помогает успешному возвращению к нормальной жизни.

  37. minitoto dice:

    Hello! I’m at work surfing around your blog from my new iphone!
    Just wanted to say I love reading through your blog and look forward to all your posts!

    Keep up the superb work!

  38. At this moment I am ready to do my breakfast, afterward having my breakfast coming yet again to read further
    news.

  39. Diplomi_ctmr dice:

    аттестат за 11 класс 2014 купить [url=www.arus-diplom23.ru/]аттестат за 11 класс 2014 купить[/url] .

  40. Diplomi_xtOr dice:

    аттестат за 11 класс 2006 купить [url=http://arus-diplom24.ru]аттестат за 11 класс 2006 купить[/url] .

  41. toto slot dice:

    I’m not sure where you are getting your information, but good topic.
    I needs to spend some time learning more or understanding more.
    Thanks for excellent information I was looking for
    this information for my mission.

Responder a narkologiyaorenburgdreno Cancelar respuesta