Merge "Backup and Restore - History"

This commit is contained in:
Zuul 2021-07-12 22:49:17 +00:00 committed by Gerrit Code Review
commit 85eab03bc3
2 changed files with 33 additions and 0 deletions

View File

@ -91,3 +91,6 @@ tripleo_backup_and_restore_skip_nfs_test: false
# How many seconds do we want to wait fir pcs cluster stop to finish
tripleo_backup_and_restore_pcs_timeout: 3600
# Enable historical backups
tripleo_backup_and_restore_historical: true

View File

@ -40,6 +40,36 @@
tags:
- bar_create_recover_image
- name: Modify on LOG_FILE on /etc/rear/local.conf
lineinfile:
path: /etc/rear/local.conf
regexp: "^LOGFILE.*"
line: LOGFILE="$LOG_DIR/rear-$HOSTNAME-{{ ansible_date_time.iso8601_basic_short }}.log"
when:
- tripleo_backup_and_restore_historical
tags:
- bar_create_recover_image
- name: Modify ISO_PREFIX on /etc/rear/local.conf
lineinfile:
path: /etc/rear/local.conf
regexp: "^ISO_PREFIX.*"
line: ISO_PREFIX=$HOSTNAME-{{ ansible_date_time.iso8601_basic_short }}
when:
- tripleo_backup_and_restore_historical
tags:
- bar_create_recover_image
- name: Modify BACKUP_PROG_ARCHIVE on /etc/rear/local.conf
lineinfile:
path: /etc/rear/local.conf
regexp: "^BACKUP_PROG_ARCHIVE.*"
line: BACKUP_PROG_ARCHIVE=$HOSTNAME-{{ ansible_date_time.iso8601_basic_short }}
when:
- tripleo_backup_and_restore_historical
tags:
- bar_create_recover_image
- name: Create the node backup
command: rear {{ (tripleo_backup_and_restore_rear_simulate | bool) | ternary('-s ', '') }}-d -v mkbackup
register: tripleo_backup_and_restore_rear_output