]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/recipes/default.rb
Enable mod_evasive for all apache instances except render servers
[chef.git] / cookbooks / apache / recipes / default.rb
index 4d91da140e061d30389de52992b3edcc801bcf48..aee5dfcc87564b74dfdb9bbc624a04e1a10c583b 100644 (file)
@@ -78,6 +78,11 @@ apache_module "status" do
   variables :hosts => admins["hosts"]
 end
 
+apache_module "evasive" do
+  conf "evasive.conf.erb"
+  only_if { node[:apache][:evasive] }
+end
+
 apache_module "brotli" do
   conf "brotli.conf.erb"
 end