diff options
author | Myles Steinhauser <msteinhauser@adc4gis.com> | 2012-12-04 21:45:57 -0600 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2013-02-15 12:30:17 -0500 |
commit | c774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2 (patch) | |
tree | 2d0275073a1f5b8d8198822f92eae476773f6f77 /manifests/server/service.pp | |
parent | 660c769dcdf4e7ad340b397602caa463838ccb32 (diff) | |
download | puppet-samba-c774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2.tar.gz puppet-samba-c774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2.tar.bz2 |
Add support for CentOS 6.3
Diffstat (limited to 'manifests/server/service.pp')
-rw-r--r-- | manifests/server/service.pp | 14 |
1 files changed, 9 insertions, 5 deletions
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 +} |