feat(backups): choose which provider backs the primary and secondary restic repo #268
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/feat/backups-repo-credentials"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The role hardwired the primary to the Linode keys (
OBJECT_STORAGE_*, which also back the Terraform state) and the secondary toOVH_OBJECT_STORAGE_*, so flipping the repos at cutover (runbook step 9) would have needed swapping vault values. Nowbackups_primary_provider/backups_secondary_provider(defaults linode / ovh, so nothing changes) select the credentials;tasks/credentials.ymlholds the mapping and rejects equal or unknown providers.At cutover: set them to ovh / linode in host_vars/services.yml, swap the two repository URLs in the vault, deploy
--tags backups. Runbook step 9 and the role notes say so.Test: scripts/tests/test-backups-credentials.sh (fake keys; default, flipped, same-provider, unknown), wired into lint.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ge5tovcwdEUBtPwUktsZZZ