diff options
Diffstat (limited to 'manifests/server')
-rw-r--r-- | manifests/server/service.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 4bbe47f..5450437 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -1,7 +1,16 @@ 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 => smbd + #Others, I don't know, hope 'samba' will works + Debian: { + case $::operatingsystem{ + Debian: { $service_name = 'samba' } + Ubuntu: { $service_name = 'smbd'} + default: { $service_name='samba'} + } + } Gentoo: { $service_name = 'samba' } # Currently Gentoo has $::osfamily = "Linux". This should change in |