chore: registry mirror status and derived health-check names #706

Sammanfogat
supernaut sammanfogade 2 incheckningar från chore/infra-chores in i main 2026-10-13 08:21:59 +00:00
Ägare

What

Two chores from the infra backlog, one commit each.

  • fix(registry-mirror): the renovate mirror entry follows renovate_image_tag. The variable moves to group_vars/all/vars.yml because the registry-mirror role runs before the renovate role. One failed skopeo copy no longer skips later images. The run still exits non-zero. The runbook uses the bitborg_ metric name.
  • chore(ansible): the Forgejo unit uses postgres_secret_name. The health gate service list is built from web_container_name, caddy_container_name and billing_container_name (when billing_enabled).

Verification

  • ansible-playbook site.yml --syntax-check and ansible-lint pass.
  • Mirror entries render identically before and after (5 src/dest pairs).
  • Prod health gate list gains bitborg-billing. The Forgejo secret line renders unchanged.

Not covered

#616 and #617 are only partly done, so they are not closed here. Left for other work: the alert rules (#616), the Keycloak ports and the restic host tag (#617).

#619 is already done on main (#642, #653).

Refs #616, #617

Apply

ansible-playbook site.yml --tags registry-mirror,forgejo,health-check. The Forgejo unit text is unchanged, so no restart is expected. The mirror script is re-rendered.

## What Two chores from the infra backlog, one commit each. - `fix(registry-mirror)`: the renovate mirror entry follows `renovate_image_tag`. The variable moves to `group_vars/all/vars.yml` because the registry-mirror role runs before the renovate role. One failed `skopeo copy` no longer skips later images. The run still exits non-zero. The runbook uses the `bitborg_` metric name. - `chore(ansible)`: the Forgejo unit uses `postgres_secret_name`. The health gate service list is built from `web_container_name`, `caddy_container_name` and `billing_container_name` (when `billing_enabled`). ## Verification - `ansible-playbook site.yml --syntax-check` and `ansible-lint` pass. - Mirror entries render identically before and after (5 src/dest pairs). - Prod health gate list gains `bitborg-billing`. The Forgejo secret line renders unchanged. ## Not covered #616 and #617 are only partly done, so they are not closed here. Left for other work: the alert rules (#616), the Keycloak ports and the restic host tag (#617). #619 is already done on main (#642, #653). Refs #616, #617 ## Apply `ansible-playbook site.yml --tags registry-mirror,forgejo,health-check`. The Forgejo unit text is unchanged, so no restart is expected. The mirror script is re-rendered.
supernaut lade till 2 incheckningar 2026-10-13 06:32:00 +00:00
The renovate mirror entry now follows renovate_image_tag, which moves to
group_vars so the earlier registry-mirror role can see it. Each skopeo copy
failure is recorded and the run exits non-zero at the end instead of
skipping later images. The runbook uses the bitborg_ metric name.

Refs #616
chore(ansible): use the existing variables instead of hand-copied literals
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m1s
ade5472661
The Forgejo unit takes the Postgres secret name from postgres_secret_name.
The post-apply health gate builds its service list from the container name
variables and now checks bitborg-billing when billing is enabled.

Refs #617
supernaut tvångsskickade chore/infra-chores från ade5472661
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m1s
till 48ce23e1ff
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m6s
2026-10-13 08:18:20 +00:00
Jämför
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-13 08:20:49 +00:00
supernaut sammanfogade incheckning cb25485286 till main 2026-10-13 08:21:59 +00:00
supernaut tog bort grenen chore/infra-chores 2026-10-13 08:21:59 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!706
Ingen beskrivning angiven.