diff options
Diffstat (limited to 'manifests/server/service.pp')
-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" : |