diff options
author | erik-smit <smite@zylon.net> | 2013-02-15 14:49:27 +0100 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2013-02-15 12:32:29 -0500 |
commit | 45f612df4100b60746624e930bd17abc209d52d6 (patch) | |
tree | b42ce5c6a2f5f998547a3d402768d645e982951f | |
parent | c774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2 (diff) | |
download | puppet-samba-45f612df4100b60746624e930bd17abc209d52d6.tar.gz puppet-samba-45f612df4100b60746624e930bd17abc209d52d6.tar.bz2 |
Implement osfamily (fixing scientific linux support), and make sure unsupported distros fail predictably
-rw-r--r-- | manifests/server/service.pp | 7 |
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" : |