puppet-nslcd/manifests/params.pp

59 lines
1.7 KiB
ObjectPascal
Raw Normal View History

2015-04-16 18:04:30 -04:00
# == Class: nslcd::params
#
# Sets the default parameters for the nslcd class.
class nslcd::params {
$package_ensure = present
$service_ensure = running
$service_enable = true
2015-11-20 11:36:19 -05:00
$ldap_uris = ['ldap:///']
$ldap_version = '3'
$ldap_binddn = undef
$ldap_bindpw = undef
$ldap_search_base = ''
$ldap_search_scope = 'subtree'
$ldap_filters = {}
$ldap_maps = {}
$ldap_ssl = 'off'
$ldap_tls_reqcert = 'allow'
$ldap_tls_cacertfile = undef
$ldap_tls_cacertder = undef
$bind_timelimit = 10
$timelimit = 0
2015-11-20 11:54:30 -05:00
$idle_timelimit = 0
2015-11-20 11:36:19 -05:00
$reconnect_sleeptime = 1
$reconnect_retrytime = 10
$pagesize = 0
2015-11-20 11:54:30 -05:00
$referrals = 'on'
2015-11-20 11:36:19 -05:00
$nss_initgroups_ignoreusers = undef
2015-04-16 18:04:30 -04:00
case $::osfamily {
2015-11-20 11:54:30 -05:00
'Debian': {
$config = '/etc/nslcd.conf'
$package_name = 'nslcd'
$service_name = 'nslcd'
2015-11-20 11:36:19 -05:00
$uid = 'nslcd'
$gid = 'nslcd'
$config_user = 'root'
$config_group = 'nslcd'
$config_mode = '0640'
}
2015-11-20 11:54:30 -05:00
'RedHat': {
$config = '/etc/nslcd.conf'
$package_name = 'nss-pam-ldapd'
$service_name = 'nslcd'
2015-11-20 11:36:19 -05:00
$uid = 'nslcd'
$gid = 'root'
$config_user = 'root'
$config_group = 'root'
$config_mode = '0600'
2015-04-16 18:04:30 -04:00
}
default: {
fail("The ${module_name} module is not supported on an ${::osfamily} based system.")
}
}
}