summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/linux.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/puppetmaster/linux.pp')
-rw-r--r--manifests/puppetmaster/linux.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/manifests/puppetmaster/linux.pp b/manifests/puppetmaster/linux.pp
index 43cd841..abb7bb8 100644
--- a/manifests/puppetmaster/linux.pp
+++ b/manifests/puppetmaster/linux.pp
@@ -1,10 +1,18 @@
# manifests/puppetmaster/linux.pp
class puppet::puppetmaster::linux inherits puppet::linux {
+
+if defined (puppet::puppetmaster::passenger) {
+ $puppetmaster_servicename = "puppetmaster" }
+ else {
+ $puppetmaster_servicename = "apache2"
+ }
+
service{'puppetmaster':
ensure => running,
- enable => true,
+ name => $puppetmaster_servicename,
+ enable => true,
require => [ Package[puppet] ],
}