From 6595de47881433d40295c0296f5320f93d5b6dab Mon Sep 17 00:00:00 2001 From: Yuris Cakranegara Date: Wed, 6 Aug 2025 11:07:18 +1000 Subject: [PATCH] feat: restructure volume path --- main.tf | 6 +++++- services/main.tf | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 7564a54..6c61f48 100644 --- a/main.tf +++ b/main.tf @@ -19,6 +19,10 @@ module "services" { source = "./services" } +locals { + volume_host = "${module.system_globals.volume_host}/appdata" +} + module "homelab_cloudflared_tunnel" { source = "./modules/01-networking/cloudflared-tunnel" cloudflare_account_id = module.cloudflare_globals.cloudflare_account_id @@ -40,7 +44,7 @@ module "homelab_caddy_proxy" { cloudflare_zone_id = module.cloudflare_globals.cloudflare_zone_id external_ip = module.cloudflare_globals.external_ip service_definitions = module.services.service_definitions - volume_path = module.system_globals.volume_host + volume_path = local.volume_host networks = [module.services.homelab_docker_network_name] monitoring = true } diff --git a/services/main.tf b/services/main.tf index 3955070..0c587a0 100755 --- a/services/main.tf +++ b/services/main.tf @@ -1,6 +1,7 @@ locals { module_dir = "../modules" - volume_host = module.system_globals.volume_host + root_volume = module.system_globals.volume_host + volume_host = "${module.system_globals.volume_host}/appdata" } module "system_globals" {