Populate terragrunt-enc: encapi ENC data as code #1
Reference in New Issue
Block a user
Delete Branch "benvin/initial"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
terragrunt-enc is the single source of truth for encapi ENC data (Puppet statuses, roles, and node classifications), managed with Terraform/Terragrunt. It supersedes Cobbler classification for Puppet and the terraform-incus dual-write prototype (PR #39). This is the initial repo content; main is branch-protected, so it lands via PR.
Changes:
modules/encapi(encapi_status / encapi_role / encapi_node resources; nodes FK-ordered after their role and status via depends_on).config/encapileaf: 3 statuses, 51 roles, and 143 node assignments (130 container VMs envproduction+ 13prodnxsrphysicals envdevelop), all YAML-driven.config/root.hcl: consul backendinfra/terraform/enc/<leaf>/stateand the encapi provider from the artifactapi registry (v0.1.0).ci/extract_incus_nodes.py(regenerates the VM block from a terraform-incus checkout), and expand the README.Note: the
planCI status check only passes once terraform-vault #98 (auth + encapi token grant) and argocd-apps #274 (terraform-enc ServiceAccount) are merged/applied; merging this PR is itself the apply path (Woodpecker applies on push to main).