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: 123,103

  1. выпрямитель dyson ht01 купить [url=https://vypryamitel-dn-kupit-3.ru/]выпрямитель dyson ht01 купить[/url] .

  2. Raymondmaync dice:

    п»їJust now, I was looking for Ciprofloxacin without waiting and found a reliable pharmacy. You can order meds no script safely. For treating sinusitis, check this shop. Overnight shipping guaranteed. Go here: order amoxicillin online. Hope you feel better.

  3. 88aa1.com dice:

    My developer is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the costs. But he’s tryiong none the less.
    I’ve been using WordPress on a number of websites for about a year and am anxious about switching to another platform.
    I have heard fantastic things about blogengine.net. Is there a
    way I can import all my wordpress posts into it? Any kind of help would be greatly appreciated!

  4. Raymondmaync dice:

    Recently, I needed Ivermectin for humans and came across this source. They sell generic Stromectol with express shipping. For treating infections quickly, check this out: [url=http://ivermectinexpress.com/#]view details[/url]. Cheers

  5. Richarduphon dice:

    Лаки Джет характеристика

    Лаки Джет – это уникальная развлекательная платформа, которая получила большую популярность среди любителей азартных развлечений. В этой статье мы обсудим основные преимущества Лаки Джет, его функционал и почему он является таким запоминающимся.

    Что такое Лаки Джет игра

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

    Основные характеристики Лаки Джет

    – Простой интерфейс и управление

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

    – Высокая вероятность успеха

    Система генерации чисел в Лаки Джет работает так, чтобы обеспечить честные шансы на выигрыш, что завлекает большое число пользователей.

    – Разнообразие бонусов и призов

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

    Почему стоит выбрать [url=https://luckyjet-ru.com/]лаки джет стратегия онлайн[/url] в качестве развлечения

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

    – Лаки Джет предлагает 24/7 техническую поддержку, которая помогает в решении любых вопросов участников.

    – Мобильный формат позволяет играть повсюду, поддерживается как на iOS, так и на Android.

    Заключение

    Лаки Джет – это современный и надежный игровой сервис, который сочетает в себе простоту и надежность. Благодаря богатому ассортименту, а также справедливым правилам, он заслуженно занимает свое место в мире азартных онлайн-развлечений. Если вы хотите захватывающая игра с возможностью получения бонусов, Лаки Джет окажется отличным выбором.

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

  6. 成人材料 可通过 可靠且经过验证
    的网站获取。探索 可信来源 以获得高质量内容。

    Take a look at my homepage :: LESBIAN PORN VIDEOS

  7. Hello! I could have sworn I’ve been to this site before but after checking through some of the post I realized
    it’s new to me. Anyhow, I’m definitely delighted I found it
    and I’ll be bookmarking and checking back frequently!

  8. Raymondmaync dice:

    To be honest, I was looking for Amoxicillin urgently and came across this source. You can get effective treatment cheaply. If you need meds, highly recommended: AmoxicillinExpress Store. Get well soon.

  9. Raymondmaync dice:

    Greetings! I discovered a useful pharmacy online for those who need medications cheaply. This store has huge discounts on Rx drugs. If you want to save, check it out: read more. Hope this helps.

  10. post-9635 dice:

    Почему пользователи выбирают площадку KRAKEN?

    Маркетплейс KRAKEN заслужил
    доверие многочисленной аудитории благодаря сочетанию ключевых факторов.
    Во-первых, это широкий и разнообразный ассортимент, представленный сотнями
    продавцов. Во-вторых, интуитивно понятный интерфейс KRAKEN, который упрощает навигацию, поиск товаров и управление заказами даже для новых
    пользователей. В-третьих, продуманная система
    безопасных транзакций, включающая механизмы разрешения споров (диспутов) и
    возможность использования условного депонирования, что минимизирует риски для обеих сторон сделки.
    На KRAKEN функциональность сочетается
    с внимательным отношением к безопасности клиентов,
    что делает процесс покупок более предсказуемым, защищенным и,
    как следствие, популярным среди пользователей, ценящих анонимность и надежность.

  11. z11bet app dice:

    Greate article. Keep writing such kind of information on your blog. Im really impressed by your blog.

  12. Raymondmaync dice:

    Hey all! Check out a great resource to order pills cheaply. This store provides reliable delivery on Rx drugs. For fast service, check it out: [url=http://pharmiexpress.com/#]buy meds online[/url]. Best regards.

  13. Excellent pieces. Keep writing such kind of info on your blog. Im really impressed by it.

  14. Raymondmaync dice:

    Actually, I wanted to get Amoxicillin for a toothache and stumbled upon this reliable site. It offers Amoxicillin 500mg fast. For fast relief, highly recommended: buy amoxicillin online. Cheers.

  15. Pinjam dana dice:

    We stumbled over here coming from a different website and
    thought I may as well check things out. I like what I see so
    now i’m following you. Look forward to checking out your web page again.

  16. content dice:

    I constantly emailed this weblog post page to all my associates,
    as if like to read it then my contacts will too.

  17. Hi there to all, how is everything, I think every
    one is getting more from this web page, and your
    views are good in support of new visitors.

  18. Raymondmaync dice:

    п»їLately, I was looking for Zithromax without waiting and stumbled upon a great source. They let you order meds no script securely. In case of a bacterial infection, try here. Express delivery available. Link: http://antibioticsexpress.com/#. Get well soon.

  19. sabung ayam dice:

    I was able to find good information from your articles.

Responder a vaperather Cancelar respuesta