puppet-nslcd/manifests/params.pp

33 lines
832 B
ObjectPascal
Raw Normal View History

2015-04-16 18:04:30 -04:00
# == Class: nslcd::params
#
# Sets the default parameters for the nslcd class.
#
2023-03-30 11:34:41 -04:00
class nslcd::params {
case $facts['os']['family'] {
2023-03-30 11:34:41 -04:00
'Debian': {
$package_name = 'nslcd'
2015-11-23 18:42:05 -05:00
$gid = 'nslcd'
2023-03-30 11:34:41 -04:00
$config = '/etc/nslcd.conf'
2015-11-23 18:42:05 -05:00
$config_group = 'nslcd'
$config_mode = '0640'
2015-04-16 18:04:30 -04:00
}
2023-03-30 11:34:41 -04:00
'RedHat': {
$package_name = 'nss-pam-ldapd'
$gid = 'ldap'
2023-03-30 11:34:41 -04:00
$config = '/etc/nslcd.conf'
$config_group = 'root'
$config_mode = '0600'
2015-04-16 18:04:30 -04:00
}
2023-03-30 11:34:41 -04:00
'FreeBSD': {
$package_name = 'nss-pam-ldapd'
$gid = 'nslcd'
$config = '/usr/local/etc/nslcd.conf'
$config_group = 'wheel'
$config_mode = '0600'
}
default: {
fail("The ${module_name} module is not supported on an ${facts['os']['family']} based system.")
2015-04-16 18:04:30 -04:00
}
}
2023-03-30 11:34:41 -04:00
}