Ramon Gazoni Lacerda b0e787b197 Fix ldap dir on ansible playbook for backup roles
when running backup on Debian, ansible throws an error
on ldap db backup task.
error: "slapcat: 'bad configuration directory!'"

that's because ldap configuration directory changed on
debian from openldap to ldap

the fix this is to indentify the os distribution that
is currently using and do a conditional on ansible, to
differentiate the task on debian from centos, to be able
to fetch information from the correct directory depending
on the os.

Test Plan:
PASS: Build an image on Debian
PASS: Build an image on CentOS
PASS: Create backup on Debian
PASS: Create backup on CentOS

Story: 2009303
Task: 45477

Signed-off-by: Ramon Gazoni Lacerda <Ramon.GazoniLacerda@windriver.com>
Co-Authored-By: Daniel Stevens <DanielStevens.TorresCardenas@windriver.com>
Co-Authored-By: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I84ea3ebb3c0f31c03d678c02fee79fc298492313
2022-07-05 13:53:19 -03:00
2022-03-09 12:54:44 -03:00
2019-06-15 14:03:07 -05:00
2021-06-09 14:11:38 +08:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00
2021-06-09 14:11:38 +08:00

stx-ansible-playbooks

StarlingX Bootstrap and Deployment Playbooks

Execution environment

  • Unix like OS (recent Linux based distributions, MacOS, Cygwin)
  • Python 2.7

Additional Required Packages

The playbooks in this repo have been verified with the following versions of Ansible and StarlingX playbooks dependencies:

  • sshpass 1.06
  • python2-ptyprocess 0.5
  • python2-pexpect 4.6
  • python2-netaddr 0.7
  • ansible 2.7.5

Supported StarlingX Releases

The playbooks in this repo are compatible with the following StarlingX releases:

  • 20.01

Executing StarlingX Playbooks

Executing Bootstrap Playbook

Please refer to StarlingX Deployment Guides, section Configuration controller-0 of the respective system configuration for instructions on how to set up and execute the bootstrap playbook from another host.

References

Description
StarlingX Ansible Playbooks
Readme 31 MiB
Languages
Jinja 70.4%
Python 21.3%
Shell 8.2%