The fleet's cockpit: Semaphore UI as an OpenTofu guest and an Ansible service (olympus infra)
  • Shell 66.8%
  • Makefile 12.1%
  • HCL 11.4%
  • Jinja 5.7%
  • Python 4%
Find a file
Pedro Paredes 258db42a64
All checks were successful
deploy / deploy (push) Successful in 7m7s
Semaphore deploys infra-monitoring (THE-129) (!42)
## Summary

`infra-monitoring` joins the projects Stack, and this repository's vendored `scripts/env.sh` moves to the pin that names `monitoring` — the companion change to `olympus/infra-monitoring`'s first Guest (THE-129).

```diff
 semaphore/projects/variables.tf
-  default = [..., "infra-media"]
+  default = [..., "infra-media", "infra-monitoring"]
 scripts/env.sh                   # pin 804e62b8… (classify() knows `monitoring`)
 docs/deploy.md                   # six ci-<repo> users → seven
```

The line creates the project, the `deploy` template and the `ci-monitoring` user; the Operator mints that user's token once, and sets the repository's two Actions Variables from `make projects-ids`.

## Evidence

- **Before:** the projects Stack's default list carried six repositories; `scripts/env.sh` classified six CI actors.
  **After:** `make check` rc 0 (the whole credential-free floor, including the vendored pin and the drift suites); `tofu fmt -recursive -check` clean; `tofu validate` in `semaphore/projects`: *Success! The configuration is valid.*
- The new pin is `804e62b8c4bd72888dfc603a1801be68ea3193d9b53e3051e72f755f8fb1eb72`, the body of `infra-secrets`' `scripts/env.sh` in `olympus/infra-secrets#70`.
- The project and user are created by this repository's own deploy on merge; nothing is created by hand.

## Merge Danger

**Door:** two-way — a list entry and a vendored file; a revert restores both.

**Blast Radius:** low — one new project, template and user in Semaphore; no existing project changes, and the `infra-monitoring` user starts no task until a workflow in that repository asks it to.

Co-authored-by: Hermes <noreply+hermes@thepit.space>
Reviewed-on: #42
Reviewed-by: Minos <noreply+minos@thepit.space>
2026-12-03 18:44:18 +00:00
.forgejo/workflows The deploy and the projects plan check carry the Nginx Proxy Manager URL as a Variable (THE-14) (!34) 2026-11-15 12:12:11 +00:00
.mise/locks/pypi-ansible-core/2.21.5 semaphore: the stack, and the state it keeps in the store (#1) 2026-10-18 19:12:38 +00:00
bao/recipients Plan and rehearse every repository daily, and report the difference (paperclip:THE-11) (!38) 2026-12-02 10:28:07 +00:00
docs Semaphore deploys infra-monitoring (THE-129) (!42) 2026-12-03 18:44:18 +00:00
research Ship the community 2.19.16 build with HA, mail and the watchdog (CP-41) (#16) 2026-11-05 15:38:47 +00:00
runner/guest The Semaphore runner's Guest Stack, and the Targets that apply it (CP-42) (!20) 2026-11-06 16:39:49 +00:00
scripts Semaphore deploys infra-monitoring (THE-129) (!42) 2026-12-03 18:44:18 +00:00
semaphore Semaphore deploys infra-monitoring (THE-129) (!42) 2026-12-03 18:44:18 +00:00
.env.example Semaphore listens only over TLS, and everything on 143 and 145 pins its CA (THE-106) (!36) 2026-12-01 16:19:34 +00:00
.gitignore Plan and rehearse every repository daily, and report the difference (paperclip:THE-11) (!38) 2026-12-02 10:28:07 +00:00
AGENTS.md Both cockpit Guests apply security updates, and the server accepts only 3000 and SSH (THE-40) (!39) 2026-12-02 16:28:36 +00:00
env.map Semaphore listens only over TLS, and everything on 143 and 145 pins its CA (THE-106) (!36) 2026-12-01 16:19:34 +00:00
LICENSE semaphore: the stack, and the state it keeps in the store (#1) 2026-10-18 19:12:38 +00:00
Makefile Plan and rehearse every repository daily, and report the difference (paperclip:THE-11) (!38) 2026-12-02 10:28:07 +00:00
mise.lock fix: pin jq, which the fetch parses the store with (SC-14) (#12) 2026-11-04 19:18:51 +00:00
mise.toml fix: pin jq, which the fetch parses the store with (SC-14) (#12) 2026-11-04 19:18:51 +00:00
README.md Semaphore deploys infra-media, and env.sh moves to the new pin (THE-122) (!41) 2026-12-03 06:34:55 +00:00

infra-cockpit

OpenTofu + Ansible that build the Semaphore UI guest and its service on the Pit homelab.

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 — the pin, the map, the env tests, the plan check's tests, the plan workflow's tests, the drift check's tests, formatting — is the credential-free floor. Where each name comes from is docs/environment.md; the interface itself is documented once, for every repository that vendors it, in infra-secrets docs/env-fetch.md.

A merge to main deploys PROD — snapshot, Guest, service, verify — through Forgejo Actions, and a pull request whose plan would destroy or replace anything is red before it can merge: docs/deploy.md, which also says what the Operator resolves by hand.

The Guest is one container and its disk is the instance: its database, its stored access keys and its project clones. The pool it joins is what makes the PROD token able to reach it; the configuration declares it where the provider can write it, ignores it afterwards, and guards the container against any replacement — docs/guest.md.