From c774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2 Mon Sep 17 00:00:00 2001 From: Myles Steinhauser Date: Tue, 4 Dec 2012 21:45:57 -0600 Subject: Add support for CentOS 6.3 --- manifests/server/service.pp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'manifests/server') diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 98bd442..6aa1ef9 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -1,11 +1,15 @@ -class samba::server::service { +class samba::server::service ($ensure = running, $enable = true) { + case $operatingsystem { + centos, redhat: { $service_name = 'smb' } + debian, ubuntu: { $service_name = 'smbd' } + } - service { 'smbd': - ensure => running, + service { "$service_name" : + ensure => $ensure, hasstatus => true, hasrestart => true, - enable => true, + enable => $enable, require => Class['samba::server::config'] } -} \ No newline at end of file +} -- cgit v1.2.3