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

  1. Hello, i read your blog occasionally and i own a similar one and i was just wondering
    if you get a lot of spam feedback? If so how do
    you prevent it, any plugin or anything you
    can suggest? I get so much lately it’s driving me insane so any support is very much appreciated.

  2. вывод из запоя круглосуточно смоленск
    vivod-iz-zapoya-smolensk009.ru
    вывод из запоя цена

  3. Оригинальный потолок натяжные потолки со световыми линиями москва со световыми линиями под заказ. Разработка дизайна, установка профиля, выбор цветовой температуры. Идеально для квартир, офисов, студий. Стильно, практично и с гарантией.

  4. Vovan Casino — онлайн-клуб, в котором каждая ставка имеет значение.
    Выбор игр приятно удивляет даже опытных игроков, включая автоматы на
    любой вкус, рулетку и турнирные комнаты.
    Не упусти шанс — казино с бонусом за
    регистрацию — и игра начнёт приносить тебе больше,
    чем просто адреналин.

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

    Щедрые приветственные подарки — отличное начало

    Постоянные турниры с настоящими призами

    Поддержка 24/7 — всегда рядом

    Это именно то казино, куда возвращаются
    снова и снова https://privetka.ru/

  5. 撥筋創業 dice:

    https://digi639sa.netlify.app/research/digi639sa-(61)
    With that in thoughts, you are totally entitled to need an outfit that lives as a lot as
    the big day.

  6. FrankGusia dice:

    School is not just a place where students learn [url=https://nature-et-avenir.org]https://nature-et-avenir.org[/url]

  7. Тркелу dice:

    Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

  8. Hey There. I found your blog using msn. This is a really well written article.
    I will be sure to bookmark it and return to read more of your useful information. Thanks for the post.
    I will certainly comeback.

  9. slot gacor dice:

    No matter if some one searches for his necessary thing, thus he/she desires to be available that in detail, so that thing is maintained over here.

  10. Arnoldwak dice:

    Do not miss the opportunity to receive a generous reward [url=https://lenotoplenie.ru/images/pages/index.php?1xbet_promokod_pri_registracii_bonus_3.html]https://lenotoplenie.ru/images/pages/index.php?1xbet_promokod_pri_registracii_bonus_3.html[/url]

  11. UU88 dice:

    It is the best time to make some plans for the future and it is
    time to be happy. I’ve read this post and if I could I wish to suggest you few interesting things or advice.
    Perhaps you could write next articles referring to this article.

    I wish to read even more things about it!

  12. 188bet dice:

    It’s actually very complicated in this busy life to listen news
    on Television, thus I simply use internet for that reason, and obtain the most recent
    information.

  13. It’s genuinely very difficult in this full of activity life to listen news
    on TV, thus I simply use internet for that reason, and take
    the most recent news.

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

    Keep up the superb work!

  15. Hello! I could have sworn I’ve been to this blog before but after checking through some of the post I realized it’s new to me.
    Anyhow, I’m definitely glad I found it and I’ll
    be book-marking and checking back frequently!

  16. ставки с фрибетом винлайн [url=https://www.winline-fribet-novym-klientam.ru]https://www.winline-fribet-novym-klientam.ru[/url] .

  17. Shanehargo dice:

    Hi there everyone, it’s my first go to see at this website, and post is actually fruitful in favor of me, keep up posting these articles.
    buy generic vibramycin 200mg

  18. Undeniably imagine that that you stated. Your favorite
    reason seemed to be at the web the simplest thing to remember
    of. I say to you, I certainly get annoyed whilst other people consider worries that they plainly do not recognize about.
    You managed to hit the nail upon the top as neatly as defined out
    the entire thing without having side effect , other people could take a signal.
    Will probably be again to get more. Thank you

  19. магазин итальянской сантехники [url=https://www.gessi-santehnika-3.ru]https://www.gessi-santehnika-3.ru[/url] .

  20. Thomascharm dice:

    Гидравлический подъемный стол.
    Выберите один из товаров, чтобы получить подарок.
    https://energo-pole.ru/photos/photo/nashi-raboty/img_8315_1/
    столы.
    Арт. Артикул 67-5006.
    Столы с вертикальными ножницами.
    Особенности моделей.

  21. I’ve been trying Sugar Defender for a few weeks now and can say it’s a mixed experience.
    On the bright side, I’ve noticed fewer sugar cravings,
    a bit more consistent energy, and fewer spikes after meals—just like many users report.

  22. Does your website have a contact page? I’m having trouble locating it
    but, I’d like to send you an e-mail. I’ve got some creative ideas for your
    blog you might be interested in hearing. Either way, great blog
    and I look forward to seeing it develop over time.

  23. rolet 303 dice:

    Helpful information. Fortunate me I discovered your site by accident, and I’m stunned why
    this accident did not took place earlier! I bookmarked it.

  24. I don’t even know how I ended up here, but I thought this post was
    good. I don’t know who you are but definitely you’re going to a famous
    blogger if you aren’t already 😉 Cheers!

Responder a 888starz_fwOi Cancelar respuesta