aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/service.pp
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2014-01-10 15:27:04 -0800
committerAdam Jahn <ajjahn@gmail.com>2014-01-10 15:27:04 -0800
commit2ca5eb3109c7d12c8252e4d228946267dc43c93a (patch)
tree57d3407eee96c28d659bb3aa4a54be86489ca400 /manifests/server/service.pp
parentcdbccc2846ebbf382a9fd409afbb96f36f5782d0 (diff)
parent5398d2c96c38d2a920d52c5caba06fbdf2888229 (diff)
downloadpuppet-samba-2ca5eb3109c7d12c8252e4d228946267dc43c93a.tar.gz
puppet-samba-2ca5eb3109c7d12c8252e4d228946267dc43c93a.tar.bz2
Merge pull request #17 from gnieark/master
samba's service name for debian
Diffstat (limited to 'manifests/server/service.pp')
-rw-r--r--manifests/server/service.pp11
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