summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster/linux.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-05-11 17:00:20 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-05-11 17:00:20 -0400
commit57d8ecf86f49db2c9e367480e380a73cad4b71e6 (patch)
tree473263b26fdb525e7e7c90efbf919b9d3f02dd99 /manifests/puppetmaster/linux.pp
parent0f0434a582c1f3bd274a79e51ab34a2f4887e659 (diff)
parentfc72cbc8a9d09b2d305df061dfc74cc960610d85 (diff)
Merge commit 'nadir/master'
Diffstat (limited to 'manifests/puppetmaster/linux.pp')
-rw-r--r--manifests/puppetmaster/linux.pp27
1 files changed, 21 insertions, 6 deletions
diff --git a/manifests/puppetmaster/linux.pp b/manifests/puppetmaster/linux.pp
index 43cd841..2a71dd4 100644
--- a/manifests/puppetmaster/linux.pp
+++ b/manifests/puppetmaster/linux.pp
@@ -1,13 +1,28 @@
# manifests/puppetmaster/linux.pp
class puppet::puppetmaster::linux inherits puppet::linux {
-
- service{'puppetmaster':
- ensure => running,
- enable => true,
- require => [ Package[puppet] ],
+
+ if defined (puppet::puppetmaster::passenger) {
+ service{'puppetmaster':
+ ensure => running,
+ #name => apache2,
+ #enable => true,
+ pattern => 'apache2',
+ hasstatus => true,
+ start => '/etc/init.d/apache2 start',
+ stop => '/etc/init.d/apache2 start',
+ restart => '/etc/init.d/apache2 restart',
+ status => 'pgrep apache2',
+ require => [ Package[puppet] ],
+ }
+ }
+ else {
+ service{'puppetmaster':
+ ensure => running,
+ enable => true,
+ require => [ Package[puppet] ],
+ }
}
-
Service[puppet]{
require +> Service[puppetmaster],
}