puppet-nslcd/manifests/params.pp

43 lines
1.0 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
$ldap_uris = ['ldap:///']
$ldap_version = '3'
$ldap_binddn = undef
$ldap_bindpw = undef
$ldap_search_base = ''
$ldap_search_scope = 'subtree'
$ldap_filters = {}
$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 {
2015-11-23 18:42:05 -05:00
'debian': {
$config = $default_config
$package_name = $default_package_name
$service_name = $default_service_name
2015-04-16 18:04:30 -04:00
$uid = 'nslcd'
2015-11-23 18:42:05 -05:00
$gid = 'nslcd'
$config_user = 'root'
$config_group = 'nslcd'
$config_mode = '0640'
2015-04-16 18:04:30 -04:00
}
default: {
2015-11-23 18:42:05 -05:00
fail("the ${module_name} module is not supported on an ${::osfamily} based system.")
2015-04-16 18:04:30 -04:00
}
}
}