bnr Create subfolders on the backup directory
Currently, only the bacup directory is created on the server which is going to store the backups. This patch adds the possibility of creating subfolders on that directory Change-Id: Icb1495e6c6056d30b4c1729fac9a387d8f6b5662
This commit is contained in:
parent
27a5ed3424
commit
5e3befcae4
|
@ -41,6 +41,7 @@ tripleo_backup_and_restore_mysql_grants_file: "openstack-backup-mysql-grants.sql
|
|||
# By default this should be the Undercloud node
|
||||
tripleo_backup_and_restore_server: 192.168.24.1
|
||||
tripleo_backup_and_restore_shared_storage_folder: /ctl_plane_backups
|
||||
tripleo_backup_and_restore_shared_storage_subfolders: []
|
||||
tripleo_backup_and_restore_clients_nets: ['192.168.24.0/24', '10.0.0.0/24', '172.16.0.0/24']
|
||||
tripleo_backup_and_restore_rear_simulate: false
|
||||
tripleo_backup_and_restore_using_uefi_bootloader: 0
|
||||
|
|
|
@ -111,6 +111,16 @@
|
|||
tags:
|
||||
- bar_setup_nfs_server
|
||||
|
||||
- name: Create backup subfolders in the NFS server
|
||||
file:
|
||||
path: "{{ tripleo_backup_and_restore_shared_storage_folder }}/{{ item }}"
|
||||
state: directory
|
||||
mode: '0777'
|
||||
with_items:
|
||||
- "{{ tripleo_backup_and_restore_shared_storage_subfolders }}"
|
||||
tags:
|
||||
- bar_setup_nfs_server
|
||||
|
||||
- name: Get the lines
|
||||
set_fact:
|
||||
bar_exportfs_lines: "{% for net in tripleo_backup_and_restore_clients_nets %}\
|
||||
|
|
Loading…
Reference in New Issue