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: 22,944

  1. igs118-180 dice:

    Институт государственной службы https://igs118.ru обучение для тех, кто хочет управлять, реформировать, развивать. Подготовка кадров для госуправления, муниципалитетов, законодательных и исполнительных органов.

  2. It’s a pity you don’t have a donate button! I’d certainly donate to this outstanding blog!
    I guess for now i’ll settle for bookmarking and adding your RSS feed
    to my Google account. I look forward to new updates
    and will share this site with my Facebook group.
    Chat soon!

  3. igs118-569 dice:

    Институт государственной службы https://igs118.ru обучение для тех, кто хочет управлять, реформировать, развивать. Подготовка кадров для госуправления, муниципалитетов, законодательных и исполнительных органов.

  4. 888starz_zwOi dice:

    888starz tz login [url=https://www.888starzz.onl]888starz tz login[/url] .

  5. Публичная дипломатия России https://softpowercourses.ru концепции, стратегии, механизмы влияния. От культурных центров до цифровых платформ — как формируется образ страны за рубежом.

  6. I feel that is among the ѕuch a lot significɑnt info for me.
    And i’m glad reading your article. Ηowever want to commentary օn few common tһings, The website taste іs ideal, the articles іs in reality nice :
    Ɗ. Go᧐d task, cheers

    Feel free to surf to my web blog; Jackpot bet online

  7. Link exchange is nothing else but it is only placing the
    other person’s weblog link on your page at appropriate place and other person will also do same in support of
    you.

  8. 888starz_tkoi dice:

    888 start [url=http://starz888.pro]888 start[/url] .

  9. igs118-105 dice:

    Институт государственной службы https://igs118.ru обучение для тех, кто хочет управлять, реформировать, развивать. Подготовка кадров для госуправления, муниципалитетов, законодательных и исполнительных органов.

  10. Подготовка к капельнице от запоя на дому — ключевой момент в лечение алкогольной зависимости. Вызов нарколога и профессиональная поддержка при запое гарантируют надежность и эффективность detox-процедуры. Прежде всего, необходимо оценить признаки запоя и выяснить текущее состояние пациента. Необходимо обеспечить комфортную обстановку для лечения: подготовьте пространство, где будет проводиться капельница на дому. Обеспечьте доступа к электросети и достаточное количество чистой воды. Важно также иметь все необходимые медикаменты, которые предписал врач. Перед началом процедуры важно обсудить с специалистом все аспекты, чтобы избежать осложнений. Эффективное лечение алкоголизма включает не только капельницу, но и последующую реабилитацию от запоя. Вызов специалиста гарантирует высокий уровень помощи и поддержку в восстановлении организма после запоя.

  11. igs118-459 dice:

    Институт государственной службы https://igs118.ru обучение для тех, кто хочет управлять, реформировать, развивать. Подготовка кадров для госуправления, муниципалитетов, законодательных и исполнительных органов.

  12. Публичная дипломатия России https://softpowercourses.ru концепции, стратегии, механизмы влияния. От культурных центров до цифровых платформ — как формируется образ страны за рубежом.

  13. Публичная дипломатия России https://softpowercourses.ru концепции, стратегии, механизмы влияния. От культурных центров до цифровых платформ — как формируется образ страны за рубежом.

  14. Currently it seems like WordPress is the top blogging platform available right
    now. (from what I’ve read) Is that what you are using on your
    blog?

  15. I know this if off topic but I’m looking into starting
    my own weblog and was wondering what all is needed to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web savvy so I’m not 100% sure. Any
    tips or advice would be greatly appreciated.

    Thanks

  16. электрокарниз недорого [url=https://elektrokarnizy777.ru]https://elektrokarnizy777.ru[/url] .

  17. Appreciation to my father who stated to me about this weblog, this blog is truly remarkable.

  18. 비아센터 dice:

    Can you tell us more about this? I’d love to find out some additional information.

  19. kvtoto dice:

    I must thank you for the efforts you’ve put in writing this blog.
    I’m hoping to check out the same high-grade content from you in the future
    as well. In truth, your creative writing abilities has inspired me to get my own, personal site now 😉

  20. Hi there Dear, are you in fact visiting this site regularly, if so then you will without
    doubt obtain nice experience.

  21. casino giri? [url=http://candy-casino-9.com]casino giri?[/url] .

  22. I got this site from my friend who informed me about this web page and now this time I am visiting this web site and reading very
    informative articles or reviews at this place.

  23. Школа бизнеса EMBA https://emba-school.ru программа для руководителей и собственников. Стратегическое мышление, международные практики, управленческие навыки.

  24. Опытный репетитор https://english-coach.ru для школьников 1–11 классов. Подтянем знания, разберёмся в трудных темах, подготовим к экзаменам. Занятия онлайн и офлайн.

  25. casinocandy [url=www.candy-casino-2.com/]www.candy-casino-2.com/[/url] .

  26. Right now it sounds like BlogEngine is the best blogging
    platform availabloe right now. (from what I’ve read) Is that what you’re using on your blog?

  27. Hmm it seems like your website ate my first comment (it was
    super long) so I guess I’ll just sum it up what
    I submitted and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog writer but I’m still new to everything.
    Do you have any points for rookie blog writers? I’d really appreciate
    it.

  28. FrankGusia dice:

    Polaris is an international manufacturer of household appliances [url=https://ostradjurkliniken.se/]https://ostradjurkliniken.se/[/url]

  29. Опытный репетитор https://english-coach.ru для школьников 1–11 классов. Подтянем знания, разберёмся в трудных темах, подготовим к экзаменам. Занятия онлайн и офлайн.

  30. Школа бизнеса EMBA https://emba-school.ru программа для руководителей и собственников. Стратегическое мышление, международные практики, управленческие навыки.

  31. seo dice:

    Hey There. I found your weblog the usage of msn. This is a very well written article.

    I’ll make sure to bookmark it and return to learn more of your helpful information. Thanks for
    the post. I will certainly comeback.

  32. Arnoldwak dice:

    The conditions are transparent and are specified in the “Promotions” section [url=https://www.imdb.com/list/ls4105682129/]https://www.imdb.com/list/ls4105682129/[/url]

  33. Опытный репетитор https://english-coach.ru для школьников 1–11 классов. Подтянем знания, разберёмся в трудных темах, подготовим к экзаменам. Занятия онлайн и офлайн.

Agrega tu comenatio