Merge "Backup and Restore - History"
This commit is contained in:
commit
85eab03bc3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue