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: 110,569

  1. JosephDug dice:

    Umass India Pharm: Umass India Pharm – indianpharmacy com

  2. I’d like to thank you for the efforts you have put in writing this website.
    I really hope to check out the same high-grade blog posts by you later
    on as well. In truth, your creative writing abilities has
    motivated me to get my very own website now 😉

  3. JosephDug dice:

    Online medicine home delivery: top 10 pharmacies in india – indianpharmacy com

  4. wgshhbnay dice:

    Playtech hentet inspirasjon fra gresk mytologi og laget flott og spennende spill Age of the Gods: Prince of Olympus. Som et resultat får du et realistisk og helt strålende spill som baseres på gamle legender. Herkules er en gudommelig helt i gresk mytologi, som ble helten i en spilleautomat. Dessuten det ble skapt mange gode filmer som er basert på Herkules’ historie, som fascinerer både barn og voksne. For fans av Zeus og antikk-gresk mytologi, eller for de som bare søker en spilleautomat med stort gevinstpotensial, er Gates of Olympus definitivt verdt å prøve. Og for de som ønsker enda mer, finnes oppfølgeren Gates of Olympus 1000, som tar konseptet enda lenger med en maksimal gevinst på hele 15 000x. Er du ikke sikker på om Gates of Olympus er en videoautomat for deg? Her er noen av de største fordelene og ulempene ved spillet:
    https://graph.org/
    Maksimale gevinster fra gratisspinnene er 2000 NOK. Gratisspinnene må aktiveres innen 2 dager etter kreditering, og gevinster må omsettes 40 ganger innen 2 dager. De blir tilgjengelige på spill som Wolf Treasure, Gates of Olympus eller Bonanza Billion, avhengig av lokasjon. Minsteinnskuddet for første bonus hos BC.Game er 100 kr, mens minsteinnskuddet for andre, tredje og fjerde bonus er 150 kr. Både innskuddsbonusene og gratisspinnene krediteres automatisk, og gratisspinnene må hentes og brukes innen 24 timer, mens bonusene må brukes og omsettes innen 30 dager. Innskuddsbonusene har omsetningskrav på 45x, mens gratisspinnene har omsetningskrav på 40x. Du kan maks vinne 50 kr på gevinster fra gratisspinn, og maks 200% av bonusbeløpet.

  5. RodneyKab dice:

    Обзор популярных моделей iPhone в Стерлитамаке
    [url=https://sterlitamak.applemarketrf.ru]MacBook купить[/url]
    Выбираем новый iPhone и живем в Стерлитамаке? Узнайте обо всех достоинствах актуальных моделей и определите оптимальную покупку. Мы проанализировали рынок смартфонов региона и выбрали лучшие предложения, подходящие каждому потребителю.

    [b]Модели iPhone, доступные в Стерлитамаке[/b]

    [url=https://sterlitamak.applemarketrf.ru]ipad 11 2025 купить стерлитамак[/url]

    Новейший iPhone 17 — настоящая находка для поклонников яблочных гаджетов. Аппарат оснащен великолепным AMOLED-дисплеем, производительной платформой и аккумулятором, которого хватает надолго. Эта модель станет идеальным спутником активного образа жизни и сможет удовлетворить потребности практически любого пользователя.

    [url=https://sterlitamak.applemarketrf.ru]макбук стерлитамак купить[/url]

    Модель iPhone 16 отлично подойдёт тем, кто хочет получить достойный уровень производительности, сохраняя умеренность расходов. Телефон оборудован современной системой обработки данных, хорошим набором датчиков и качественной фотокамеры. Прекрасный вариант для студентов, молодых профессионалов и активных горожан.

    [b]iPhone 13 Стерлитамак[/b]
    [url=https://sterlitamak.applemarketrf.ru/catalog/watch/]часы apple watch купить стерлитамак[/url]
    Классика жанра — iPhone 13 всё ещё остается популярным вариантом среди жителей Стерлитамака. Модель доступна по привлекательной цене и характеризуется прочным корпусом, качественным звуком и ярким дисплеем. Отличный выбор для ежедневного использования.

    [b]iPhone 16 Pro Стерлитамак[/b]

    Для истинных фанатов айфонской культуры подойдет iPhone 16 Pro. Устройство сочетает высокие показатели быстродействия, ультрачеткую камеру и долговечность конструкции. Такая модель способна обеспечить владельцу максимальный комфорт в работе и развлечениях.

    [b]iPhone 17 Pro Стерлитамак[/b]

    Топовая линейка iPhone 17 Pro рассчитана на самую взыскательную аудиторию. Мощнейший процессор, максимальная скорость отклика, профессиональный модуль камеры — всё это объединяет владелец iPhone 17 Pro. Настоящий выбор для перфекционистов и творческих личностей.

    [b]Итоговый вывод[/b]

    Рассматривая рынок iPhone в Стерлитамаке, каждый покупатель найдет себе устройство по душе. Главное — чётко понимать цели и нужды, чтобы точно определить нужную модель и не ошибиться с выбором. Будь то простой, но добротный iPhone 13 или суперсовременный iPhone 17 Pro — выбор правильного смартфона обеспечит приятные впечатления и комфортное использование.
    купить айфон 17 про макс стерлитамак
    https://sterlitamak.applemarketrf.ru/catalog/iphone/iphone-17-pro/apple-iphone-17-pro-1tb-silver/

  6. DelmarerypE dice:

    https://unmpharm.com/# mexican pharmaceuticals online

  7. Danielnaicy dice:

    A British man, along with five others, has been charged with carrying out 56 sexual offences against his now ex-wife over a 13-year period.
    [url=https://trips60.cc]tripscan[/url]
    Philip Young has been remanded in custody in relation to the string of charges, which include multiple counts of rape and administering a substance with the intent to overpower to allow sexual activity, according to Wiltshire Police.
    [url=https://trips60.cc]трип скан[/url]
    Young, 49, has also been charged with voyeurism, possession of indecent images of children and possession of extreme images.
    [url=https://trips60.cc]трипскан сайт[/url]
    Five other men, currently on bail, have also been charged with offences against 48-year-old Joanne Young, who waived her legal right to anonymity.

    The alleged offences took place between 2010 and 2023.

    The men were named by police as Norman Macksoni, 47, who has been charged with one count of rape and possession of extreme images; Dean Hamilton, also 47, who is facing one count of rape and sexual assault by penetration and two counts of sexual touching; 31-year-old Conner Sanderson Doyle, who has been charged with sexual assault by penetration and sexual touching; Richard Wilkins, 61, who faces one count of rape and sexual touching and Mohammed Hassan, 37, who has been charged with sexual touching.

    All six men are due to appear at Swindon Magistrates’ Court in southwest England on Tuesday.

    Geoff Smith, detective superintendent for Wiltshire police, described the charges as a “significant update” in a “complex and extensive investigation.”

    He added that Joanne Young was being supported by specially trained officers and made the decision to waive her automatic legal right to anonymity “following multiple discussions with officers and support services.”

    James Foster, a Crown Prosecution Service specialist prosecutor, added that the CPS had authorized the charges against the six men “following a police investigation into alleged serious sexual offences against Joanne Young over a period of 13 years.”

    “Our prosecutors have worked to establish that there is sufficient evidence to charge and that it is in the public interest to pursue criminal proceedings,” he said in a statement.

    “We have worked closely with Wiltshire Police as they carried out their investigation.”
    трип скан
    https://trips60.cc

  8. DanielSes dice:

    A British man, along with five others, has been charged with carrying out 56 sexual offences against his now ex-wife over a 13-year period.
    [url=https://trips60.cc]трипскан[/url]
    Philip Young has been remanded in custody in relation to the string of charges, which include multiple counts of rape and administering a substance with the intent to overpower to allow sexual activity, according to Wiltshire Police.
    [url=https://trips60.cc]tripscan top[/url]
    Young, 49, has also been charged with voyeurism, possession of indecent images of children and possession of extreme images.
    [url=https://trips60.cc]tripskan[/url]
    Five other men, currently on bail, have also been charged with offences against 48-year-old Joanne Young, who waived her legal right to anonymity.

    The alleged offences took place between 2010 and 2023.

    The men were named by police as Norman Macksoni, 47, who has been charged with one count of rape and possession of extreme images; Dean Hamilton, also 47, who is facing one count of rape and sexual assault by penetration and two counts of sexual touching; 31-year-old Conner Sanderson Doyle, who has been charged with sexual assault by penetration and sexual touching; Richard Wilkins, 61, who faces one count of rape and sexual touching and Mohammed Hassan, 37, who has been charged with sexual touching.

    All six men are due to appear at Swindon Magistrates’ Court in southwest England on Tuesday.

    Geoff Smith, detective superintendent for Wiltshire police, described the charges as a “significant update” in a “complex and extensive investigation.”

    He added that Joanne Young was being supported by specially trained officers and made the decision to waive her automatic legal right to anonymity “following multiple discussions with officers and support services.”

    James Foster, a Crown Prosecution Service specialist prosecutor, added that the CPS had authorized the charges against the six men “following a police investigation into alleged serious sexual offences against Joanne Young over a period of 13 years.”

    “Our prosecutors have worked to establish that there is sufficient evidence to charge and that it is in the public interest to pursue criminal proceedings,” he said in a statement.

    “We have worked closely with Wiltshire Police as they carried out their investigation.”
    tripscan top
    https://trips60.cc

  9. CraigWed dice:

    gabapentin mexican pharmacy [url=https://unmpharm.xyz/#]Unm Pharm[/url] buy viagra from mexican pharmacy

Responder a Brucetraby Cancelar respuesta