aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/service.pp
diff options
context:
space:
mode:
authorerik-smit <smite@zylon.net>2013-02-15 14:49:27 +0100
committerAdam Jahn <ajjahn@gmail.com>2013-02-15 12:32:29 -0500
commit45f612df4100b60746624e930bd17abc209d52d6 (patch)
treeb42ce5c6a2f5f998547a3d402768d645e982951f /manifests/server/service.pp
parentc774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2 (diff)
downloadpuppet-samba-45f612df4100b60746624e930bd17abc209d52d6.tar.gz
puppet-samba-45f612df4100b60746624e930bd17abc209d52d6.tar.bz2
Implement osfamily (fixing scientific linux support), and make sure unsupported distros fail predictably
Diffstat (limited to 'manifests/server/service.pp')
-rw-r--r--manifests/server/service.pp7
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/server/service.pp b/manifests/server/service.pp
index 6aa1ef9..2c6f590 100644
--- a/manifests/server/service.pp
+++ b/manifests/server/service.pp
@@ -1,7 +1,8 @@
class samba::server::service ($ensure = running, $enable = true) {
- case $operatingsystem {
- centos, redhat: { $service_name = 'smb' }
- debian, ubuntu: { $service_name = 'smbd' }
+ case $::osfamily {
+ Redhat: { $service_name = 'smb' }
+ Debian: { $service_name = 'smbd' }
+ default: { fail("$::osfamily is not supported by this module.") }
}
service { "$service_name" :