pilot: 117 navidrome, written from the live Guest #1

Merged
pit merged 3 commits from pilot/117-navidrome into main 2026-12-02 11:37:58 +00:00
Owner

Summary

The pilot: 117 navidrome, written from the live Guest, in the shape every later Guest copies.

 infra-media/
+├── modules/guest/          the Track B module, extended for a NAS-backed Guest
+├── navidrome/
+│   ├── guest/              117's Stack: one state record, prevent_destroy on
+│   └── service/            117's play: pinned .deb, six settings, mount asserted
+├── docs/
+│   ├── guest.md            what the live Guest answered, and the import sequence
+│   ├── service.md          the release, the configuration, what the play does not own
+│   ├── deploy.md           what a merge runs, and the seven prerequisites
+│   ├── runbook-navidrome.md  the NFS mount contract, the publish path, the rebuild
+│   └── reference/state.md  the one state object, and who holds which half
+├── Makefile                HOST= on every deploy target
+├── env.map  .env.example   the environment, fetched and not typed
+├── scripts/                env.sh (vendored), plan-check.py, snapshot.sh, semaphore-deploy.sh
+└── .forgejo/workflows/     pr-checks: the credential-free floor

The module gains five inputs, each one a thing the live 117 has and the template could not say: mount_points (the NAS bind), nameservers (the Guest asks the LAN's DNS), features.keyctl, start_on_boot, description. A Guest that names none of them is unchanged.

Evidence

  • Before: 117 exists only as hand-built state on burns — pct config 117 is the only declaration, and a rebuild is an archaeology exercise.
    After: every value in navidrome/guest/ is a line of that output, recorded with its reading in docs/guest.md.
tofu fmt -check                                  clean
tofu validate (navidrome/guest)                  Success! The configuration is valid.
ansible-playbook --syntax-check site.yml         clean
ansible-playbook --syntax-check verify.yml       clean
make check                                       env pin ok · 4 names declared · formatting clean

The service play's zero-diff claim is a byte comparison, not an assertion: the template renders /etc/navidrome/navidrome.toml to 130 bytes, sha256 b4784c46793ed84678e501323773f915122ab27bd17381f18818e667a76309f3, identical to the live file.

Two readings I could not take from the agent host, both recorded in docs/deploy.md as Operator preconditions rather than claimed here: the import plan (403 /vms/117, VM.Audit — the apply token's ACL names /pool/prod, and 117 is not a member) and ansible --check (117's authorized_keys holds only the Node's PVE key, so the rehearsal has no route in yet).

Merge Danger

Door: two-way. Merge lands a declaration and its docs; nothing runs. The import is an Operator's act, the deploy waits on the store record, and reverting the branch removes the declaration while the Guest keeps serving.

Blast Radius: none at merge — this repository has no consumer but itself, and no CI job in this PR touches a machine. The one thing that is not a code change is the adoption itself: re-importing 117 into a state object that already holds it is the failure to avoid, which is why there is no import block in main.tf.

## Summary The pilot: 117 navidrome, written from the live Guest, in the shape every later Guest copies. ```diff infra-media/ +├── modules/guest/ the Track B module, extended for a NAS-backed Guest +├── navidrome/ +│ ├── guest/ 117's Stack: one state record, prevent_destroy on +│ └── service/ 117's play: pinned .deb, six settings, mount asserted +├── docs/ +│ ├── guest.md what the live Guest answered, and the import sequence +│ ├── service.md the release, the configuration, what the play does not own +│ ├── deploy.md what a merge runs, and the seven prerequisites +│ ├── runbook-navidrome.md the NFS mount contract, the publish path, the rebuild +│ └── reference/state.md the one state object, and who holds which half +├── Makefile HOST= on every deploy target +├── env.map .env.example the environment, fetched and not typed +├── scripts/ env.sh (vendored), plan-check.py, snapshot.sh, semaphore-deploy.sh +└── .forgejo/workflows/ pr-checks: the credential-free floor ``` The module gains five inputs, each one a thing the live 117 has and the template could not say: `mount_points` (the NAS bind), `nameservers` (the Guest asks the LAN's DNS), `features.keyctl`, `start_on_boot`, `description`. A Guest that names none of them is unchanged. ## Evidence - **Before:** 117 exists only as hand-built state on burns — `pct config 117` is the only declaration, and a rebuild is an archaeology exercise. **After:** every value in `navidrome/guest/` is a line of that output, recorded with its reading in `docs/guest.md`. ```text tofu fmt -check clean tofu validate (navidrome/guest) Success! The configuration is valid. ansible-playbook --syntax-check site.yml clean ansible-playbook --syntax-check verify.yml clean make check env pin ok · 4 names declared · formatting clean ``` The service play's zero-diff claim is a byte comparison, not an assertion: the template renders `/etc/navidrome/navidrome.toml` to 130 bytes, sha256 `b4784c46793ed84678e501323773f915122ab27bd17381f18818e667a76309f3`, identical to the live file. Two readings I could not take from the agent host, both recorded in `docs/deploy.md` as Operator preconditions rather than claimed here: the import plan (`403 /vms/117, VM.Audit` — the apply token's ACL names `/pool/prod`, and 117 is not a member) and `ansible --check` (117's `authorized_keys` holds only the Node's PVE key, so the rehearsal has no route in yet). ## Merge Danger **Door:** two-way. Merge lands a declaration and its docs; nothing runs. The import is an Operator's act, the deploy waits on the store record, and reverting the branch removes the declaration while the Guest keeps serving. **Blast Radius:** none at merge — this repository has no consumer but itself, and no CI job in this PR touches a machine. The one thing that is not a code change is the adoption itself: re-importing 117 into a state object that already holds it is the failure to avoid, which is why there is no `import` block in `main.tf`.
pilot: 117 navidrome, written from the live Guest
Some checks failed
pr-checks / check (pull_request) Failing after 7s
5d0b69159c
The media domain's first Guest, and the template hardening the pilot found:

- modules/guest gains mount_points, nameservers, features.keyctl,
  start_on_boot and description, so a NAS-backed Guest is a variables file
  rather than a fork (117's shape needed all five).
- navidrome/guest declares 117 from the live machine's own answers
  (docs/guest.md is the reading); the first state entry is an Operator's
  import, documented, not an import block.
- navidrome/service installs the pinned upstream .deb and the six settings
  the live Guest carries; the template renders byte-identical to the live
  /etc/navidrome/navidrome.toml, and the play refuses a /var/music that is
  not the declared read-only NFS mount.
- docs/runbook-navidrome.md records the NFS mount contract, the publish
  path (none; SUB/WAVE reaches it on the LAN) and the rebuild sequence.

Verified: tofu fmt -check, tofu validate on the Guest Stack, ansible
--syntax-check on both plays, make check (env pin + map + formatting).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
toolchain: the ansible-core sidecar, so a cold checkout installs
All checks were successful
pr-checks / check (pull_request) Successful in 11s
c97a20f020
The pull request's first run failed in 'Install the toolchain' after five
seconds: mise answered 'dependency sidecar .mise/locks/***/2.21.5: No such
file or directory; run mise lock to repair it'. The lockfile carried the
pypi entry; the uv project and its lock beside it were never generated, and
a machine that already had ansible-core installed could not tell.

Generated with 'mise lock'. Verified from an empty MISE_DATA_DIR: six tools
install, then 'make check' and 'make validate' both pass, which is the
runner's state and not this host's.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
docs: name the plan token's role as it is on the cluster
All checks were successful
pr-checks / check (pull_request) Successful in 10s
3d6462bd9c
The ACL on /pool/prod carries the 'planner' role for the plan tokens, whose
privileges are PVEAuditor's set; the page named the role by its privileges.
Measured with 'pveum acl list' and 'pveum role list' on burns.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
pit merged commit ae0642c564 into main 2026-12-02 11:37:58 +00:00
pit deleted branch pilot/117-navidrome 2026-12-02 11:37:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-media!1
No description provided.