OpenLDAP nslcd_conf_dir should change with use_sssd

Description

In openldap:am, the following variables use nslcd_conf_dir in their path:

_tls_cert
_tls_key
_tls_cacertdir
_tls_cacertfile

The default for nslcd_conf_dir is '/etc/nslcd.d' unless otherwise explicitly set in hiera. However, the certs are not installed to that location if the system has ::use_sssd set.

I propose a change in variable name to something generic (cert_base_dir or just conf_dir) and some logic to smartly change the default to /etc/sssd if ::use_sssd is set. Thoughts?

Acceptance Criteria

None

Labels

None

Epic Link

None

Story Points

None

Components

Priority

Medium
Configure