Add paste01.opendev.org to backup

Change-Id: Iec6b916bd27a5333d28d1fdc931d4f41165bf50c
This commit is contained in:
Ian Wienand 2021-07-15 14:58:50 +10:00
parent 61b1759f0e
commit d4c613a07a
3 changed files with 17 additions and 1 deletions

View File

@ -23,6 +23,7 @@ groups:
- refstack01.openstack.org
- kdc03.openstack.org
- eavesdrop01.opendev.org
- paste01.opendev.org
# All these servers are "special-cased" in specifically
# as they are puppet and should be replaced "soon"
- ethercalc02.openstack.org

View File

@ -3,3 +3,6 @@ letsencrypt_certs:
- paste01.opendev.org
- paste.opendev.org
- paste.openstack.org
borg_backup_excludes_extra:
# live db; dumped with mysqldump
- /var/lib/lodgeit

View File

@ -83,4 +83,16 @@
shell:
cmd: docker image prune -f
# TODO : db backups
- name: Create backup streaming config dir
file:
path: /etc/borg-streams
state: directory
- name: Setup container mariadb backup jobs
block:
- name: Create mariadb streaming file
copy:
content: >-
/usr/local/bin/docker-compose -f /etc/lodgeit-compose/docker-compose.yaml exec -T mariadb
bash -c '/usr/bin/mysqldump --all-databases --skip-extended-insert --single-transaction -uroot -p"$MYSQL_ROOT_PASSWORD"'
dest: /etc/borg-streams/mariadb