Merge "Remove the usage of ansible_date_time" into stable/train
This commit is contained in:
commit
b5a6180e7e
|
@ -40,6 +40,43 @@
|
|||
tags:
|
||||
- bar_create_recover_image
|
||||
|
||||
- name: Get date and time to add to the backup prefix
|
||||
command: "date +\"{{ tripleo_backup_and_restore_date_argument }}\""
|
||||
register: bar_timestamp
|
||||
when: tripleo_backup_and_restore_historical
|
||||
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-{{ bar_timestamp.stdout }}.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-{{ bar_timestamp.stdout }}
|
||||
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-{{ bar_timestamp.stdout }}
|
||||
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
|
||||
|
|
|
@ -85,6 +85,12 @@ 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
|
||||
|
||||
# Date argument to get the string of the backup
|
||||
tripleo_backup_and_restore_date_argument: '%Y%m%d%H%M'
|
||||
|
||||
# Enable historical backups
|
||||
tripleo_backup_and_restore_historical: true
|
||||
|
||||
# Cron programming, by default, run cron weekly at midnight on Sundays
|
||||
tripleo_backup_and_restore_cron: "0 0 * * 0"
|
||||
|
||||
|
|
Loading…
Reference in New Issue