- Shell 45.3%
- HCL 35.9%
- Makefile 9.3%
- Python 5.5%
- Jinja 4%
|
All checks were successful
deploy / deploy (push) Successful in 13m40s
Reviewed-on: #17 Reviewed-by: Minos <noreply+minos@thepit.space> |
||
|---|---|---|
| .forgejo/workflows | ||
| .mise/locks/pypi-ansible-core/2.21.5 | ||
| bao/recipients | ||
| bazarr | ||
| docs | ||
| jellyfin | ||
| lidarr | ||
| modules/guest | ||
| navidrome | ||
| nzbget | ||
| prowlarr | ||
| qbittorrent | ||
| radarr | ||
| roles | ||
| scripts | ||
| seerr | ||
| slskd | ||
| sonarr | ||
| subwave | ||
| .env.example | ||
| .gitignore | ||
| env.map | ||
| LICENSE | ||
| Makefile | ||
| mise.lock | ||
| mise.toml | ||
| README.md | ||
infra-media
OpenTofu + Ansible that declare the media domain's Guests on the Pit homelab — the machines that serve the film, television and music libraries — and the service each of them runs.
Twelve Guests are declared today, in the wave's order, and every one is written from the live machine's own answers:
| Guest | What it is | Guest page | Service page |
|---|---|---|---|
117 navidrome (burns) |
the music library, a native install on a read-only NFS mount the Guest makes itself | docs/guest.md |
docs/service.md |
152 subwave (duku) |
SUB/WAVE, the library's player, as the upstream Docker Compose stack | docs/guest-subwave.md |
docs/service-subwave.md |
104 prowlarr (burns) |
the indexer manager the three libraries read through | docs/guests-arr.md |
docs/service-arr.md |
103 radarr (burns) |
the film library | the same | the same |
105 sonarr (burns) |
the television library | the same | the same |
106 lidarr (burns) |
the music library's manager | the same | the same |
147 nzbget (burns) |
the usenet downloader, its queues on the NAS | docs/guest-nzbget.md |
docs/service-nzbget.md |
148 slskd (burns) |
the Soulseek client and soularr, the library's bridge | docs/guest-slskd.md |
docs/service-slskd.md |
110 qbittorrent (burns) |
the torrent client, its queues on the NAS | docs/guest-qbittorrent.md |
docs/service-qbittorrent.md |
107 bazarr (burns, on .108) |
the subtitle manager the three libraries call | docs/guests-arr.md |
docs/service-bazarr.md |
124 seerr (burns) |
the request front — a built tree the play asserts rather than installs | docs/guests-media.md |
the same |
100 jellyfin (burns) |
the player, Jellyfin's own apt package pinned by version | the same | the same |
The four Servarrs are one application shape, so they share one role —
roles/servarr/ — and each play names its own application, pin
and address. What a rebuild of any of them loses, and how the links between them
come back, is docs/runbook-arr.md.
<host>/guest/ is the OpenTofu Stack that declares the container,
<host>/service/ the Ansible play that installs and keeps the service on it, and
roles/ holds the roles more than one play reads: roles/servarr/ for the four
Servarr applications — install, unit, seeded configuration, and the Assert rings —
and roles/journal/, which every play in the repository declares. Each Guest has a
runbook for the parts that are a person's:
docs/runbook-navidrome.md (the NFS mount contract),
docs/runbook-subwave.md (the station's state, its
secrets, and its rebuild), docs/runbook-arr.md (the arr
fleet's keys and links, and what a rebuild loses),
docs/runbook-nzbget.md (the downloader's mount, its queue and
its control port), docs/runbook-qbittorrent.md (the
torrent client's mount and queue) and docs/runbook-slskd.md
(slskd and soularr, and its two NFS mounts). Everything in both layers is measured from the live
machines, so each first plan is an import in place and the first Converge is
designed to be a no-op — except on 110 qbittorrent, whose first Converge
replaces the helper script's static build with Debian's package
(docs/service-qbittorrent.md).
The environment this repo's targets source is fetched, not typed: make env
writes .env from the store and the age class, and make check is the
credential-free floor — the vendored script against its pin and the map, the
deploy's own offline tests, and formatting. Where each name comes from is env.map; the interface
itself is documented once, in infra-secrets
docs/env-fetch.md.
A merge to main is the deploy: Semaphore applies this repository's declarations in
place, one host at a time, and a Guest's declaration changes by a merge, never by a
hand edit. The first green run waits on the Operator's prerequisites — the state
records, the pool membership, the SSH keys and the service secrets — and
docs/deploy.md is the measured list and the order to land them in.
Every deploy Target names its host — make guest HOST=subwave — because this
repository declares more than one machine, and make prod walks them in HOSTS
order. make check runs the floor, and make help lists what it is made of. The
pages are docs/guest.md,
docs/guest-subwave.md,
docs/guests-arr.md and
docs/guests-media.md — the Guests, measured, the last of
them covering both layers for the wave's two newest —
docs/service.md,
docs/service-subwave.md and
docs/service-arr.md — what each play installs and why —
docs/deploy.md — the deploy and its prerequisites — and the
runbooks above.