From d441e80fbd0510279dc6a55ec881158bf62c2dc5 Mon Sep 17 00:00:00 2001 From: Yuris Cakranegara Date: Sat, 7 Jun 2025 15:01:08 +1000 Subject: [PATCH] chore: rename data_dir to volume_host --- modules/00-globals/system/main.tf | 6 +++--- services/main.tf | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/00-globals/system/main.tf b/modules/00-globals/system/main.tf index ae9ddee..c06d5a5 100644 --- a/modules/00-globals/system/main.tf +++ b/modules/00-globals/system/main.tf @@ -14,9 +14,9 @@ output "timezone" { value = data.dotenv.system_config.entries.TIMEZONE } -output "data_dir" { - description = "Base directory for data volumes" - value = data.dotenv.system_config.entries.DATA_DIR +output "volume_host" { + description = "Base directory for host volumes" + value = data.dotenv.system_config.entries.VOLUME_HOST } output "puid" { diff --git a/services/main.tf b/services/main.tf index 83ce882..660f84a 100644 --- a/services/main.tf +++ b/services/main.tf @@ -1,6 +1,6 @@ locals { module_dir = "../modules" - data_dir = module.system_globals.data_dir + volume_host = module.system_globals.volume_host } module "system_globals" { @@ -20,11 +20,11 @@ module "homelab_docker_network" { module "actualbudget" { source = "${local.module_dir}/20-services-apps/actualbudget" - volume_path = "${local.data_dir}/actual" + volume_path = "${local.volume_host}/actual" networks = [module.homelab_docker_network.name] } module "emulatorjs" { source = "${local.module_dir}/20-services-apps/emulatorjs" - volume_path = "${local.data_dir}/emulatorjs" + volume_path = "${local.volume_host}/emulatorjs" }