automated restore (#40 pt 2)
context
part 2 of epic described in #40 (closed) and discussed at lenght in !158 (closed) .
dependent (?) on prior completion of #193 (closed)
behavior
- there is an ansible script that can be run with
make ansible.restorethat:- reads an
sb_backuphost from the inventory - runs an scp script that pulls backups from
sb_backupto (new)signalboosthost using-i /home/sb_user/.ssh/id_sb_user(which assumes that pubkey & secrete key must be onsignalboostand that pubkey must be inallowed_keysonsb_backup) - runs a restore job on
signalboost(which must run afterprovisionanddeploy) that restores the keystore volume and runspg_restoreon the db backup - optionally: deletes signalboost files from any borked machine (?)
- reads an
optional
complete the "ansible requirements" section of #40 (closed) (or split into new card if that helps!)
ansible requirements
- some way of putting inventory (hence what backup and prod hosts and what users and keys are) under version control, without blasting away the
ansible_useretc. values that any given dev might be using. (maybe putinventory.tmpl.gpgunder version control? - pub key for
sb_usermust go onsb_backuphost -
sb_userand its pub/priv ssh keys must go on all prod instances - gpg keys should be imported into keyring as part of
provision - cron job for running
backupscript must be put into allprodinstances as part ofprovision.yml
Edited by aguestuser