From 96d0b2a097be28971c9441989f0d1a04315e4936 Mon Sep 17 00:00:00 2001 From: gnieark Date: Thu, 26 Sep 2013 11:04:56 +0200 Subject: Update service.pp On debian 7 samba service name is 'samba' --- manifests/server/service.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 4bbe47f..3731381 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -1,7 +1,15 @@ class samba::server::service ($ensure = running, $enable = true) { case $::osfamily { Redhat: { $service_name = 'smb' } - Debian: { $service_name = 'smbd' } + + #On Debian family: Debian 7 => samba , Ubuntu => smb + #Others, I don't know, hope 'samba' will works + Debian: { + case $::operatingsystem{ + Debian: { $service_name = 'samba' } + Ubuntu: { $service_name = 'smb'} + default: { $service_name='samba'} + } Gentoo: { $service_name = 'samba' } # Currently Gentoo has $::osfamily = "Linux". This should change in -- cgit v1.2.3 From 5398d2c96c38d2a920d52c5caba06fbdf2888229 Mon Sep 17 00:00:00 2001 From: gnieark Date: Thu, 26 Sep 2013 11:13:38 +0200 Subject: Update service.pp --- manifests/server/service.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 3731381..5450437 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -2,14 +2,15 @@ class samba::server::service ($ensure = running, $enable = true) { case $::osfamily { Redhat: { $service_name = 'smb' } - #On Debian family: Debian 7 => samba , Ubuntu => 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' } - Ubuntu: { $service_name = 'smb'} + Ubuntu: { $service_name = 'smbd'} default: { $service_name='samba'} } + } Gentoo: { $service_name = 'samba' } # Currently Gentoo has $::osfamily = "Linux". This should change in -- cgit v1.2.3