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: 95,248

  1. Danielanosy dice:

    online pharmacy without prescription: indian pharmacy – Cor Pharmacy

  2. Williamecoto dice:

    over the counter sildenafil [url=http://viagranewark.com/#]Viagra without a doctor prescription Canada[/url] Viagra Newark

  3. Hi! I could have sworn I’ve been to this blog before but after reading through some of the post I realized it’s new to me.
    Nonetheless, I’m definitely glad I found it and I’ll
    be bookmarking and checking back often!

  4. えろ 人形consisteth in the imposing of Names,and theConnexion of them.

  5. FrankRig dice:

    Быстро, доступно и удобно: что представляют собой гостиницы на почасовую аренду?

    Иногда жизненные ситуации складываются таким образом, что необходимо найти временное жильё на считанные часы: вас ждёт длительный перерыв между рейсами, неожиданная работа требует кратковременного укрытия или хочется провести время в тихом месте вдали от шумного центра. Идеальное решение в таком случае — обратиться в специализированную гостиницу на почасовую аренду [url=https://deart-13.ru/]отель на час в москве[/url]
    Преимуществом таких гостиниц выступает возможность брать комнату только на требуемый отрезок времени. Клиент платит только за реально использованные часы, не тратя лишние деньги на целый день или сутки. Подобный подход даёт ощутимую выгоду и людям, привыкшим считать каждую минуту и рубль.
    Чаще всего гостиницы на почасовую аренду располагают рядом с железнодорожными вокзалами, аэропортами, торговыми комплексами и иными популярными объектами инфраструктуры. Такая близость гарантирует лёгкий доступ и быструю транспортировку, освобождая от забот и ненужных передвижений.
    Что касается уровня комфорта, то, несмотря на небольшую продолжительность пребывания, большинство гостиниц оборудованы необходимой мебелью, чистым бельём и быстрым интернетом. Важно отметить, что каждые комнаты проходят обязательную дезинфекцию и очистку после предыдущего клиента, гарантируя гигиеничность и порядок.
    Но как правильно подобрать подходящую гостиницу на почасовую аренду?
    1. Во-первых, обязательно прочитайте реальные отзывы от постояльцев, чтобы удостовериться в высоком уровне обслуживания.
    2. Во-вторых, примите во внимание локализацию гостиницы: лучше останавливайтесь там, откуда легче доехать до конечного пункта маршрута.
    3. Наконец, проверьте предлагаемые тарифы и акции, ведь некоторые заведения предлагают выгодные пакеты услуг и скидок.
    Таким образом, гостиницы на почасовую аренду — прекрасный выход для любого, кто нуждается в коротком временном приюте, позволяющем чувствовать себя защищённым и отдохнувшим без существенных финансовых вложений.

  6. you would think bymentioning it you did confer the greatest favour on me,ドール エロfor by thisdear hand I would sacrifice my life to oblige you.

  7. 7qa40fd.top dice:

    Hi there, I read your blogs regularly. Your writing style is awesome, keep up the good work!

  8. 等身 大 ラブドール?But reflecting that it would be impossible totake it back now and that in any case he would not have taken hedismissed it with a wave of his hand and went back to his lodging.“Sonia wants pomatum ?he said as he walked along the stree and helaughed malignantly–“such smartness costs money.

  9. Заказали лестницу с поворотом
    на 90 градусов — места заняла минимум, а выглядит шикарно.

    Feel free to surf to my page … https://pakstore.ru/

  10. Attractive section of content. I just stumbled upon your web site and in accession capital to assert
    that I get in fact enjoyed account your blog posts.
    Any way I will be subscribing to your augment and even I achievement you access consistently quickly.

  11. pp88 dice:

    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.
    Many thanks

  12. z8u1t.icu dice:

    Hello, I check your blogs on a regular basis. Your story-telling style is awesome, keep up the good work!

  13. 1win_arPl dice:

    авиатор игра на деньги 1win [url=www.1win12044.ru]www.1win12044.ru[/url]

  14. Greetings from Carolina! I’m bored to death at work so I decided to browse your website on my iphone during
    lunch break. I love the knowledge you present here and can’t
    wait to take a look when I get home. I’m surprised at how quick your blog loaded on my phone ..
    I’m not even using WIFI, just 3G .. Anyways, awesome site!

  15. 初音 ミク ラブドールseems to have been a Title of the Gaules,and signifies a Great man,

  16. Greetings! Very helpful advice in this particular article!

    It is the little changes that make the most important changes.
    Many thanks for sharing!

  17. топ агентств seo продвижения [url=http://www.reiting-seo-kompanii.ru]http://www.reiting-seo-kompanii.ru[/url] .

  18. website dice:

    Unquestionably believe that that you said. Your favorite reason seemed to be on the internet
    the easiest factor to consider of. I say to you, I definitely get
    irked whilst other people consider concerns that they plainly don’t recognize about.
    You controlled to hit the nail upon the highest as
    well as outlined out the entire thing with no need side-effects , other folks can take a signal.
    Will probably be again to get more. Thanks

  19. Williamecoto dice:

    Cheap Sildenafil 100mg [url=https://viagranewark.com/#]Viagra Newark[/url] ViagraNewark

  20. オナドールthe same also is pleasure in the imagination.Hate,

  21. Leonardsag dice:

    Как правильно выбрать ОСАГО соглашение

    Выбор ОСАГО – важный шаг для каждого собственника автомобиля. Правильный подход позволит обезопасить себя от финансовых рисков при ДТП и обеспечит законность.

    Основные критерии выбора ОСАГО

    1. Надежность организации
    Выбирайте зарекомендованную страховую компанию с положительными отзывами. Это дадут уверенность в своевременной выплате страховых сумм.

    2. Стоимость полиса
    Сравните цены нескольких страховщиков. Не всегда субсидированная цена говорит о выгоде – изучите условия подробно.

    3. Условия договора
    Обратите внимание на лимиты ответственности, сроки действия, дополнительные услуги и ограничения. Важно, чтобы они удовлетворяли ваши нужды [url=https://osago-strahovanie.ru/osago-seryshevo]Осаго Серышево[/url]

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

    Дополнительные советы

    – Проверяйте наличие всех необходимых разрешений у страховой компании.
    – Сравнивайте не только стоимость, но и качество обслуживания.
    – Используйте сервисы с отзывами пользователей.
    – Учтите бонусы и скидки за безаварийный стаж.

    Правильно подобранный страховой договор – это финансовая безопасность. Выбирайте осознанно, учитывая все ключевые детали, чтобы избежать проблем и сохранить уверенность за рулем.
    [url=https://osago-strahovanie.ru/osago-seryshevo]Осаго Серышево[/url]

Responder a Leonardsag Cancelar respuesta