diff options
author | Micah Anderson <micah@riseup.net> | 2013-01-31 15:58:16 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-01-31 15:58:38 -0500 |
commit | c4805af340ae63e9129696e0c96f9896417eb9c4 (patch) | |
tree | de3a94b41009395a53957981736be5e1423a7696 /puppet/modules | |
parent | e6fe80f9460b8bc013068e1dda8be6230b8d60a4 (diff) |
install an apache Directory override block to disable passenger for nagios, if the node is a monitor node
Diffstat (limited to 'puppet/modules')
-rw-r--r-- | puppet/modules/site_apache/templates/vhosts.d/leap_webapp.conf.erb | 7 |
1 files changed, 7 insertions, 0 deletions
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') -%> + <DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)> + PassengerEnabled off + AllowOverride all + </DirectoryMatch> + <% end -%> </VirtualHost> |