]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/recipes/default.rb
Avoid duplicate resource definitions for apache_module[reqtimeout]
[chef.git] / cookbooks / apache / recipes / default.rb
index 9b6c6ef5401bb2e8938b1202717b07a999b5b9ea..1a274e223b5e9605ea3fdca115a4a38884310029 100644 (file)
@@ -67,8 +67,14 @@ apache_module "deflate" do
   conf "deflate.conf.erb"
 end
 
   conf "deflate.conf.erb"
 end
 
-apache_module "reqtimeout" do
-  action [:disable]
+if node[:apache][:reqtimeout]
+  apache_module "reqtimeout" do
+    action [:enable]
+  end
+else
+  apache_module "reqtimeout" do
+    action [:disable]
+  end
 end
 
 apache_module "ssl"
 end
 
 apache_module "ssl"