Directory /etc/openldap was not included in the restore process.
All the files that appear inside this directory after
restore come from the iso installation or are generated
based on default configuration.
So, the fix was to include the entire directory in the restore
playbook.
This fix covers only ldap service on CentOS.
Test Plan:
PASSED: test the fix for CentOS
Backup with openldap configured
--> /etc/openldap restored according to backup
PASSED: negative test
Backup without openldap configured
--> /etc/openldap restored according to backup
PASSED: negative test on Debian
--> openldap service skipped
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/849146 /opendev. org/starlingx/ ansible- playbooks/ commit/ 2f147cbd6633baa 7a5b8da050b07f0 f9f660c3ea
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 2f147cbd6633baa 7a5b8da050b07f0 f9f660c3ea
Author: Virginia Martins Perozim <email address hidden>
Date: Fri Jul 8 16:01:07 2022 -0400
Restore /etc/openldap in CentOS
Directory /etc/openldap was not included in the restore process.
All the files that appear inside this directory after
restore come from the iso installation or are generated
based on default configuration.
So, the fix was to include the entire directory in the restore
playbook.
This fix covers only ldap service on CentOS.
Test Plan:
PASSED: test the fix for CentOS
Backup with openldap configured
--> /etc/openldap restored according to backup
PASSED: negative test
Backup without openldap configured
--> /etc/openldap restored according to backup
PASSED: negative test on Debian
--> openldap service skipped
Closes-Bug: 1981082 /review. opendev. org/c/starlingx /ansible- playbooks/ +/843430 a8ae570551ea261 e06cb664540
Depends-on: https:/
Signed-off-by: Virginia Martins Perozim <email address hidden>
Change-Id: I1d7441f333fd0a