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: 88,142

  1. ambking1234 dice:

    Having read this I believed it was extremely enlightening.
    I appreciate you finding the time and energy to put this article
    together. I once again find myself spending a significant amount of time
    both reading and leaving comments. But so what, it was still worth it!

  2. Charlesjurse dice:

    purchase cytotec: buy abortion pills – buy abortion pills

  3. PatrickFes dice:

    indian pharmacy http://bswfinasteride.com/# BSW Finasteride

  4. PGRUN888 dice:

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

  5. 迷尸校园 dice:

    I’ve already recommended this article to several friends. It’s just too good not to share!

  6. If you wish for to get a great deal from this post then you have to apply these strategies to
    your won blog.

  7. Charlesjurse dice:

    chicken lice treatment ivermectin: PMA Ivermectin – PmaIvermectin

  8. Kennethgax dice:

    веб-сайт [url=https://kra42-cc.at]kra42 cc[/url]

  9. PatrickFes dice:

    reputable indian online pharmacy http://socalabortionpill.com/# Socal Abortion Pill

  10. Diplomi_taKn dice:

    россия диплом купить [url=https://www.r-diploma6.ru]россия диплом купить[/url] .

  11. Davidvat dice:

    BswFinasteride [url=https://bswfinasteride.xyz/#]buying cheap propecia without prescription[/url] BSW Finasteride

  12. PatrickFes dice:

    п»їlegitimate online pharmacies india https://uclametformin.com/# Ucla Metformin

  13. The other day, while I was at work, my cousin stole my iphone and tested to see if it can survive a forty foot
    drop, just so she can be a youtube sensation. My iPad is now destroyed and she has 83 views.
    I know this is totally off topic but I had to share it with someone!

  14. RAD 99 dice:

    Ahaa, its nice conversation regarding this piece of writing at
    this place at this webpage, I have read all that, so at this
    time me also commenting here.

  15. Diplomi_ofMt dice:

    купить диплом об образовании в хабаровске [url=https://r-diploma21.ru/]купить диплом об образовании в хабаровске[/url] .

  16. olxtoto dice:

    I’m very happy to find this website. I wanted to thank you for your
    time due to this fantastic read!! I definitely enjoyed every bit of
    it and i also have you book-marked to check out new
    stuff on your site.

  17. PatrickFes dice:

    mail order pharmacy india http://bswfinasteride.com/# BSW Finasteride

  18. PatrickFes dice:

    indian pharmacy https://socalabortionpill.xyz/# Socal Abortion Pill

  19. Charlesjurse dice:

    metformin xr 500mg: metformin 228 – UclaMetformin

  20. Davidvat dice:

    SocalAbortionPill [url=https://socalabortionpill.xyz/#]buy cytotec online[/url] SocalAbortionPill

  21. PatrickFes dice:

    indianpharmacy com https://uclametformin.com/# UclaMetformin

  22. I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.info/da-DK/register?ref=V3MG69RO

  23. MichaelSladE dice:

    Как правильно выбрать гостиницу номер

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

    Местоположение заведения

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

    Удобства и услуги

    Обратите внимание на наличие необходимых атрибутов: бесплатный Wi-Fi, парковка, завтрак, бассейн, спортзал. Проверьте список дополнительных опций — иногда даже мелкие детали влияют на общее впечатление от поселения.

    Рейтинг и отзывы клиентов

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

    Стоимость проживания

    Сравните цены в нескольких заведения. Иногда выгоднее выбрать отель, предлагающий скидки или специальные предложения. Не всегда самая дешевая цена означает качественное уход [url=https://hotelmeridian.ru/rossiya-yurevec]юрьевец отели и гостиницы[/url]

    Категория и класс гостиницы

    Обратите внимание на звездность — она примерно отражает уровень комфорта и сервиса. Но помните, что иногда уютные мини-гостиницы могут предложить не менее высокий уровень, чем крупные сети.

    Безопасность и дополнительные услуги

    Узнайте, есть ли охрана, камеры видеонаблюдения, правила пожарной безопасности. Это важно для вашего спокойствия во время поселения.

    Выбирая место размещения, учитывайте все перечисленные аспекты, чтобы ваш отдых прошёл максимально комфортно и приятно!

Responder a firefighter robot transforming truck robot games cheats Cancelar respuesta