From 2cef81ec84c2e413412f71bb7c70eaaebb16b0cd Mon Sep 17 00:00:00 2001 From: Jan Vansteenkiste Date: Tue, 1 Mar 2022 14:46:39 +0100 Subject: [PATCH] fix service names for recent debians fixes upstream pr #84 and #87 --- manifests/server/params.pp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/manifests/server/params.pp b/manifests/server/params.pp index 0b91451..37b520f 100644 --- a/manifests/server/params.pp +++ b/manifests/server/params.pp @@ -10,8 +10,12 @@ case $facts['os']['name'] { 'Debian': { case $facts['os']['release']['major'] { - '8' : { $service_name = 'smbd' } - default: { $service_name = 'samba' } + '7' : { + $service_name = 'samba' + } + default: { + $service_name = 'smbd' + } } $nmbd_name = undef } @@ -20,7 +24,7 @@ $nmbd_name = 'nmbd' } default: { - $service_name = 'samba' + $service_name = 'smbd' $nmbd_name = undef } } @@ -33,6 +37,8 @@ $service_name = 'smbd' $nmbd_name = 'nmbd' } - default: { fail("${facts['os']['family']} is not supported by this module.") } + default: { + fail("${facts['os']['family']} is not supported by this module.") + } } }