commit 549a7cec8d2714e9953a5d15ef367ebf1723ff9e
Author: Joseph Vazhappilly <email address hidden>
Date: Wed Oct 18 08:42:00 2023 -0400
Support 'exclude_dirs' for dc-vault backup
When performing a backup, the option 'exclude_dirs' may be
specified to exclude directories from backup. Currently this
option is supported only in platform backup. This change
adds support for 'exclude_dirs' option for dc-vault &
openstack backup. Some directories like /opt/dc-vault are
restricted from exclusion as it is required for phased
operations.
Test Plan:
PASS: Verify backup playbook with & without 'exclude_dirs'
PASS: Verify dc-vault & openstack backup contents
PASS: Verify Backup and Restore from DC System Controller
PASS: Verify restricted directories are not excluded
Closes-Bug: 2039682
Change-Id: I15bba7b45e83a4a301ab72808a3e4dc1712976cb
Signed-off-by: Joseph Vazhappilly <email address hidden>
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/898738 /opendev. org/starlingx/ ansible- playbooks/ commit/ 549a7cec8d2714e 9953a5d15ef367e bf1723ff9e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 549a7cec8d2714e 9953a5d15ef367e bf1723ff9e
Author: Joseph Vazhappilly <email address hidden>
Date: Wed Oct 18 08:42:00 2023 -0400
Support 'exclude_dirs' for dc-vault backup
When performing a backup, the option 'exclude_dirs' may be
specified to exclude directories from backup. Currently this
option is supported only in platform backup. This change
adds support for 'exclude_dirs' option for dc-vault &
openstack backup. Some directories like /opt/dc-vault are
restricted from exclusion as it is required for phased
operations.
Example usage: ansible-playbook /usr/share/ ansible/ \ ansible/ playbooks/ backup. yml \ become_ pass=<> admin_password=<>' \ dirs=/opt/ dc-vault/ backups/ **,/opt/ dc-vault/ loads"
stx-
-e 'ansible_
-e "exclude_
Test Plan:
PASS: Verify backup playbook with & without 'exclude_dirs'
PASS: Verify dc-vault & openstack backup contents
PASS: Verify Backup and Restore from DC System Controller
PASS: Verify restricted directories are not excluded
Closes-Bug: 2039682
Change-Id: I15bba7b45e83a4 a301ab72808a3e4 dc1712976cb
Signed-off-by: Joseph Vazhappilly <email address hidden>