From b5bbca3a198612fbf0ee6232875e1d4d08902ef6 Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 6 Jul 2012 16:24:04 +0000 Subject: added puppetmaster service def. for passenger --- manifests/puppetmaster/linux.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/manifests/puppetmaster/linux.pp b/manifests/puppetmaster/linux.pp index 31f8853..26f67fe 100644 --- a/manifests/puppetmaster/linux.pp +++ b/manifests/puppetmaster/linux.pp @@ -6,6 +6,15 @@ class puppet::puppetmaster::linux inherits puppet::linux { #command => 'touch /etc/puppet/rack/tmp/restart.txt && sleep 1 && rm /etc/puppet/rack/tmp/restart.txt', command => '/etc/init.d/apache2 reload', } + + service { 'puppetmaster': + ensure => running, + pattern => 'apache2', + hasstatus => true, + hasrestart => true, + require => [ Package[puppet] ], + } + } else { service { 'puppetmaster': ensure => running, -- cgit v1.2.3