aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/params.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server/params.pp')
-rw-r--r--manifests/server/params.pp12
1 files changed, 7 insertions, 5 deletions
diff --git a/manifests/server/params.pp b/manifests/server/params.pp
index 5f2fc3e..ba0c1be 100644
--- a/manifests/server/params.pp
+++ b/manifests/server/params.pp
@@ -3,12 +3,14 @@
class samba::server::params {
case $::osfamily {
'Redhat': { $service_name = 'smb' }
-
- #On Debian family: Debian 7 => samba , Ubuntu => smbd
- #Others, I don't know, hope 'samba' will works
'Debian': {
- case $::operatingsystem{
- 'Debian': { $service_name = 'samba' }
+ case $::operatingsystem {
+ 'Debian': {
+ case $::operatingsystemmajrelease {
+ '8' : { $service_name = 'smbd' }
+ default: { $service_name = 'samba' }
+ }
+ }
'Ubuntu': { $service_name = 'smbd'
$nmbd_name = 'nmbd' }
default: { $service_name = 'samba' }