need help writing puppet module for sssd.conf using Hiera

Posted by mr.zog on Server Fault See other posts from Server Fault or by mr.zog
Published on 2014-06-10T21:17:06Z Indexed on 2014/06/10 21:27 UTC
Read the original article Hit count: 274

Filed under:
|
|

I need to build a module to manage /etc/sssd/sssd.conf on our Red Hat VMs. The sssd modules published on the forge don't seem to do what I want, nor do I feel like forking any of them.

I want to keep all the configuration data in Hiera's common.yaml file. Below is my sssd.conf file.

[sssd]
config_file_version = 2
services = nss, pam
domains = default

[nss]
filter_groups = root
filter_users = root
reconnection_retries = 3
entry_cache_timeout = 300
entry_cache_nowait_percentage = 75

[pam]

[domain/default]
auth_provider = ldap
ldap_id_use_start_tls = True
chpass_provider = ldap
cache_credentials = True
ldap_search_base = dc=ederp,dc=com
id_provider = ldap
ldap_uri = ldaps://lvldap1.lvs01.ederp.com/ ldaps://lvldap2.lvs01.ederp.com/
ldap_tls_cacertdir = /etc/openldap/cacerts

What is the best, most economical way to build the sssd.conf file? Should I have multiple .pp files such as domain.pp, pam.pp etc. or should all the lines of configuration land in init.pp?

© Server Fault or respective owner

Related posts about puppet

Related posts about sssd