Updated case to support puppet 4

This commit is contained in:
t0xicCode 2015-11-23 18:42:05 -05:00
parent 8a0cce7544
commit 6bca0ed5d8
2 changed files with 13 additions and 12 deletions

View File

@ -23,18 +23,18 @@ class nslcd::params {
$default_service_name = 'nslcd' $default_service_name = 'nslcd'
case $::osfamily { case $::osfamily {
Debian: { 'debian': {
$config = $default_config $config = $default_config
$package_name = $default_package_name $package_name = $default_package_name
$service_name = $default_service_name $service_name = $default_service_name
$uid = 'nslcd' $uid = 'nslcd'
$gid = 'nslcd' $gid = 'nslcd'
$config_user = 'root' $config_user = 'root'
$config_group = 'nslcd' $config_group = 'nslcd'
$config_mode = '0640' $config_mode = '0640'
} }
default: { default: {
fail("The ${module_name} module is not supported on an ${::osfamily} based system.") fail("the ${module_name} module is not supported on an ${::osfamily} based system.")
} }
} }

View File

@ -18,7 +18,8 @@
"operatingsystem": "Debian", "operatingsystem": "Debian",
"operatingsystemrelease": [ "operatingsystemrelease": [
"6.0", "6.0",
"7.0" "7.0",
"8.0"
] ]
}, },
{ {
@ -32,11 +33,11 @@
"requirements": [ "requirements": [
{ {
"name": "pe", "name": "pe",
"version_requirement": "3.x" "version_requirement": ">= 3.0.0 < 2015.3.0"
}, },
{ {
"name": "puppet", "name": "puppet",
"version_requirement": "3.x" "version_requirement": ">= 3.0.0 < 5.0.0"
} }
], ],
"dependencies": [ "dependencies": [