diff options
author | gnieark <rpasserieu@ch-boispetit.fr> | 2013-09-26 11:04:56 +0200 |
---|---|---|
committer | gnieark <rpasserieu@ch-boispetit.fr> | 2013-09-26 11:04:56 +0200 |
commit | 96d0b2a097be28971c9441989f0d1a04315e4936 (patch) | |
tree | 9ae01a7c1289adb0ff0786957d02cc56c319e878 /manifests | |
parent | 63d27babd8e779fce6248afb94e9f49ff7d74ef2 (diff) | |
download | puppet-samba-96d0b2a097be28971c9441989f0d1a04315e4936.tar.gz puppet-samba-96d0b2a097be28971c9441989f0d1a04315e4936.tar.bz2 |
Update service.pp
On debian 7 samba service name is 'samba'
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/server/service.pp | 10 |
1 files changed, 9 insertions, 1 deletions
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 |