Phase 3: all 27 platform modules now run as independent stacks. Platform reduced to empty shell (outputs only) for backward compat with 72 app stacks that declare dependency "platform". Fixed technitium cross-module dashboard reference by copying file. Woodpecker pipeline applies all 27+1 stacks in parallel via loop. All applied with zero destroys.
18 lines
630 B
HCL
18 lines
630 B
HCL
variable "tls_secret_name" { type = string }
|
|
|
|
data "vault_kv_secret_v2" "secrets" {
|
|
mount = "secret"
|
|
name = "platform"
|
|
}
|
|
|
|
locals {
|
|
homepage_credentials = jsondecode(data.vault_kv_secret_v2.secrets.data["homepage_credentials"])
|
|
}
|
|
|
|
module "reverse-proxy" {
|
|
source = "./modules/reverse_proxy"
|
|
tls_secret_name = var.tls_secret_name
|
|
truenas_homepage_token = local.homepage_credentials["reverse_proxy"]["truenas_token"]
|
|
pfsense_homepage_token = local.homepage_credentials["reverse_proxy"]["pfsense_token"]
|
|
haos_homepage_token = try(local.homepage_credentials["home_assistant"]["token"], "")
|
|
}
|