OpenTofu + Ansible that declare the Pit cluster API objects and the /etc/pve archive
  • Shell 42.7%
  • HCL 38.2%
  • Makefile 10.4%
  • Python 5.8%
  • Jinja 2.9%
Find a file
2026-12-04 07:52:33 +00:00
.forgejo/workflows Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
.mise/locks/pypi-ansible-core/2.21.5 Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
cluster Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
docs Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
notifications Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
pve-config-backup Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
scripts Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
.env.example Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
.gitignore Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
AGENTS.md Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
env.map Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
LICENSE Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
Makefile Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
mise.lock Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
mise.toml Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00
README.md Declare the cluster's API objects and the /etc/pve archive (#1) 2026-12-04 07:52:33 +00:00

infra-cluster

OpenTofu + Ansible that declare the Pit Proxmox cluster's own API objects — the layer a Guest repository never reaches — and the daily archive of /etc/pve.

The cluster is three nodes (cherry, duku, burns) and one API. What lives on that API and is not a Guest is here, in the order the wave plan fixes:

# Object Where Declared
1 Pools (pre, prod) and the 21 Guests in prod cluster/pools.tf, cluster/pool_memberships.tf yes
2 Custom roles (8) cluster/roles.tf yes
3 Identities (5, all token-only) and the operator group cluster/users.tf, cluster/group.tf yes
4 ACL rows (93) cluster/acls.tf yes
5 Token objects (12, privsep 1) cluster/tokens.tf yes — the value is never in the repo
6 Storage definitions (4) cluster/storage.tf yes
7 vzdump jobs (3, one per node) cluster/backup_jobs.tf yes
8 Notifications: ops-email, backup-errors notifications/ yes — the provider has no resource
9 Datacenter options (keyboard, mac_prefix) cluster/datacenter.tf yes; allowed-tags is a named gap
10 Cluster firewall cluster/firewall.tf empty: off, no rules — declared by absence
11 SDN cluster/sdn.tf empty today; nothing to declare
— /etc/pve archive pve-config-backup/ yes — a systemd timer on each node

The access objects match ADR-0013 and the Operator grant (THE-5): the Operator's reach is the operator group and hermes@pve!operator, and no other object names Hermes. docs/access.md is the table.

Every object is written from the live cluster's own answers on 2026-12-03. The existing objects are therefore an import, not a create: docs/deploy.md has the order and scripts/import.sh the one-time act. The first plan after the import is the adoption proof: one named provider quirk on the NAS storage, and nothing else (docs/deploy.md).

make check is the credential-free floor. The rest are the Operator's — this repository has no auto-deploy, and docs/deploy.md says why: no ADR-0013 role holds cluster settings today.

The pages are docs/index.md — the map, docs/architecture.md — the order, the provider's gaps and the empty objects, docs/access.md — the grants, docs/deploy.md — the apply and its prerequisites, and docs/runbook-pve-config-backup.md — the archive's restore.