puppet-nslcd/manifests/params.pp
2018-09-06 13:43:19 +02:00

57 lines
1.4 KiB
Puppet

# == Class: nslcd::params
#
# Sets the default parameters for the nslcd class.
class nslcd::params {
$package_ensure = present
$package_manage = true
$service_ensure = running
$service_enable = true
$service_manage = true
$ldap_uris = ['ldap:///']
$ldap_version = '3'
$ldap_binddn = undef
$ldap_bindpw = undef
$ldap_search_base = undef
$ldap_group_base = undef
$ldap_search_scope = 'subtree'
$config_options = {}
$ldap_filters = {}
$ldap_maps = {}
$ldap_ssl = 'off'
$ldap_tls_reqcert = 'allow'
$ldap_tls_cacertfile = undef
$default_config = '/etc/nslcd.conf'
$default_package_name = 'nslcd'
$default_service_name = 'nslcd'
case $::osfamily {
'Debian': {
$config = $default_config
$package_name = $default_package_name
$service_name = $default_service_name
$uid = 'nslcd'
$gid = 'nslcd'
$config_user = 'root'
$config_group = 'nslcd'
$config_mode = '0640'
}
'RedHat': {
$config = $default_config
$package_name = 'nss-pam-ldapd'
$service_name = $default_service_name
$uid = 'nslcd'
$gid = 'ldap'
$config_user = 'root'
$config_group = 'root'
$config_mode = '0600'
}
default: {
fail("The ${module_name} module is not supported on an ${::osfamily} based system.")
}
}
}