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.
21 lines
682 B
HCL
21 lines
682 B
HCL
variable "tls_secret_name" { type = string }
|
|
|
|
data "vault_kv_secret_v2" "secrets" {
|
|
mount = "secret"
|
|
name = "platform"
|
|
}
|
|
|
|
locals {
|
|
xray_reality_clients = jsondecode(data.vault_kv_secret_v2.secrets.data["xray_reality_clients"])
|
|
xray_reality_short_ids = jsondecode(data.vault_kv_secret_v2.secrets.data["xray_reality_short_ids"])
|
|
}
|
|
|
|
module "xray" {
|
|
source = "./modules/xray"
|
|
tls_secret_name = var.tls_secret_name
|
|
tier = local.tiers.core
|
|
|
|
xray_reality_clients = local.xray_reality_clients
|
|
xray_reality_private_key = data.vault_kv_secret_v2.secrets.data["xray_reality_private_key"]
|
|
xray_reality_short_ids = local.xray_reality_short_ids
|
|
}
|