aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
authorMyles Steinhauser <msteinhauser@adc4gis.com>2012-12-04 21:45:57 -0600
committerAdam Jahn <ajjahn@gmail.com>2013-02-15 12:30:17 -0500
commitc774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2 (patch)
tree2d0275073a1f5b8d8198822f92eae476773f6f77 /manifests/server
parent660c769dcdf4e7ad340b397602caa463838ccb32 (diff)
downloadpuppet-samba-c774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2.tar.gz
puppet-samba-c774c8cdf5b24b3c7b9cddce2b3d25e56ee5d1a2.tar.bz2
Add support for CentOS 6.3
Diffstat (limited to 'manifests/server')
-rw-r--r--manifests/server/service.pp14
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
+}