Move all 88 service modules (66 individual + 22 platform) from modules/kubernetes/<service>/ into their corresponding stack directories: - Service stacks: stacks/<service>/module/ - Platform stack: stacks/platform/modules/<service>/ This collocates module source code with its Terragrunt definition. Only shared utility modules remain in modules/kubernetes/: ingress_factory, setup_tls_secret, dockerhub_secret, oauth-proxy. All cross-references to shared modules updated to use correct relative paths. Verified with terragrunt run --all -- plan: 0 adds, 0 destroys across all 68 stacks.
22 lines
688 B
HCL
22 lines
688 B
HCL
variable "tls_secret_name" { type = string }
|
|
variable "paperless_db_password" { type = string }
|
|
variable "homepage_credentials" { type = map(any) }
|
|
|
|
locals {
|
|
tiers = {
|
|
core = "0-core"
|
|
cluster = "1-cluster"
|
|
gpu = "2-gpu"
|
|
edge = "3-edge"
|
|
aux = "4-aux"
|
|
}
|
|
}
|
|
|
|
module "paperless-ngx" {
|
|
source = "./module"
|
|
tls_secret_name = var.tls_secret_name
|
|
db_password = var.paperless_db_password
|
|
homepage_username = var.homepage_credentials["paperless-ngx"]["username"]
|
|
homepage_password = var.homepage_credentials["paperless-ngx"]["password"]
|
|
tier = local.tiers.edge
|
|
}
|