From c4805af340ae63e9129696e0c96f9896417eb9c4 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Thu, 31 Jan 2013 15:58:16 -0500 Subject: install an apache Directory override block to disable passenger for nagios, if the node is a monitor node --- puppet/modules/site_apache/templates/vhosts.d/leap_webapp.conf.erb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'puppet') diff --git a/puppet/modules/site_apache/templates/vhosts.d/leap_webapp.conf.erb b/puppet/modules/site_apache/templates/vhosts.d/leap_webapp.conf.erb index 8c820788..4928cdd6 100644 --- a/puppet/modules/site_apache/templates/vhosts.d/leap_webapp.conf.erb +++ b/puppet/modules/site_apache/templates/vhosts.d/leap_webapp.conf.erb @@ -36,5 +36,12 @@ PassengerAllowEncodedSlashes on PassengerFriendlyErrorPages off SetEnv TMPDIR /var/tmp + + <% if (defined? @services) and (services.is_a? Array) and (@services.include? 'monitor') -%> + + PassengerEnabled off + AllowOverride all + + <% end -%> -- cgit v1.2.3