chore(ansible): remove the legacy-rename and kanidm-cleanup roles #759
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!759
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "chore/585-purge"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Title: chore(ansible): remove the legacy-rename and kanidm-cleanup roles
Part of #585.
What
legacy-renamerole, its twosite.ymlentries,scripts/test_legacy_rename.pyand its CI step.kanidm-cleanuprole and itssite.ymlentry.kanidm-cleanupparagraph.keycloakdatabase is no longer a rollback copy.[<ip>]:2222. The bare<ip>entry is only needed for the first apply, which still reaches sshd on port 22. After it, port 22 serves Forgejo's git SSH with its own key, so the step now removes that entry withssh-keygen -R <ip>.legacy_user,legacy_restic_hostandlegacy_secret_prefixstay. The backup readers and the secret cleanup in three roles still use them.Host purge
The host deletes are one-off and run outside Ansible, staging first, then prod, on 2026-10-26. They remove:
/srv/bitborg-data/containers.gitborg,/srv/bitborg-data/legacy-rename,/root/legacy-rename*,/root/keycloak-move/, and thekeycloakdatabase and role in the shared Postgres./home/bitborg/.local/share/containers.gitborg,/var/lib/legacy-rename,/root/legacy-rename, and 7 unprefixed Quadlet.volumeunits that namegitborg-*volumes.prerename-gitborg-prod-{root,data,lfs,backup,monitoring-root}-20261015.The run refuses unless the isolated Keycloak is ready, the shared Postgres has no connection to
keycloak, the current store is the active one, and on prod a weekly drill passed after 2026-10-22.Read-only survey 2026-10-15:
keycloakDBkeycloak-move812 KB, rename state and one rolled-back state dirkeycloak-move1.5 MB, rename state.volumeunitsNo Kanidm volume, image, secret or config directory on staging or prod.
Merge order
Merge after the purge has run on both environments. The roles are no-ops on renamed hosts, so the merge changes nothing on a host.
Checks
pnpm ansible:checkand every lefthook pre-push job pass.ansible-playbook site.yml --check: prodchanged=0, monitoringchanged=0, stagingchanged=0.Not in this PR
Names left after the purge, outside its scope:
gitborg-prodandgitborg-prod-monitoring./srv/bitborg-lfs/actions_log/gitborg/.gitborg.senames.gitborg-*.tar.agearchives. They age out withbackup_archive_prefixes.~/.cache/renovate/repos/forgejo/gitborg.gitborg-runner-staging-*.5edcc8bc29dbb34cc323dbb34cc323c5563f6212f4e0c3d2932a1d9198ad