`make edit-vault` runs `ansible-vault edit` (decrypt → nvim → re-encrypt on :wq, abort on :cq) so editing the vault is one step with no plaintext left in the work tree, then validates structure. `make check-vault` runs scripts/check-vault.py: decrypts in-memory, asserts valid YAML with secrets under the nested `vault:` map and no empty leaves, and prints a values-masked structure view (comments visible, secrets never printed). Both default to the production all-vault; override VAULT=. Update the vault header comment, CLAUDE.md (command table + Secrets section), and scripts/README to point at edit-vault (note check-vault.py is the one venv- dependent helper, by design). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| production | ||
| staging | ||
| README.md | ||
inventories/
Ansible inventories, one directory per environment (staging/, production/).
Defines which hosts exist and their group membership; group_vars/ and host_vars/
hold per-group and per-host configuration.
hosts.ymlis generated from Terraform outputs bymake tf-inventory— do not hand-edit. The control node is the one manual exception.- Terraform→inventory data flow and the data contract: ADR-009.
- Addressing conventions (subnets, ranges): ADR-007.
- Layout and host groups: see CLAUDE.md ("Inventory structure").