diff --git a/manifests/server/params.pp b/manifests/server/params.pp index be9e01b..2d259e6 100644 --- a/manifests/server/params.pp +++ b/manifests/server/params.pp @@ -6,9 +6,10 @@ 'Debian': { case $::operatingsystem { 'Debian': { - case $::operatingsystemmajrelease { - '8' : { $service_name = 'smbd' } - default: { $service_name = 'samba' } + if (versioncmp($::operatingsystemmajrelease, '8') >= 0) { + $service_name = 'smbd' + } else { + $service_name = 'samba' } } 'Ubuntu': {