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.
30 lines
1 KiB
HCL
30 lines
1 KiB
HCL
variable "tls_secret_name" { type = string }
|
|
variable "openclaw_ssh_key" { type = string }
|
|
variable "openclaw_skill_secrets" { type = map(string) }
|
|
variable "gemini_api_key" { type = string }
|
|
variable "llama_api_key" { type = string }
|
|
variable "brave_api_key" { type = string }
|
|
variable "modal_api_key" { type = string }
|
|
|
|
locals {
|
|
tiers = {
|
|
core = "0-core"
|
|
cluster = "1-cluster"
|
|
gpu = "2-gpu"
|
|
edge = "3-edge"
|
|
aux = "4-aux"
|
|
}
|
|
}
|
|
|
|
module "openclaw" {
|
|
source = "./module"
|
|
tls_secret_name = var.tls_secret_name
|
|
git_crypt_key_base64 = filebase64("${path.root}/../../.git/git-crypt/keys/default")
|
|
ssh_key = var.openclaw_ssh_key
|
|
skill_secrets = var.openclaw_skill_secrets
|
|
gemini_api_key = var.gemini_api_key
|
|
llama_api_key = var.llama_api_key
|
|
brave_api_key = var.brave_api_key
|
|
modal_api_key = var.modal_api_key
|
|
tier = local.tiers.aux
|
|
}
|