X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/32a423888e0d6b5254c55e4faf418b31749dc69e..23b449a94ef4ffc4746775f6a6d6b88c8a1c46c9:/cookbooks/apache/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/apache/recipes/default.rb b/cookbooks/apache/recipes/default.rb index 72af9140b..1a274e223 100644 --- a/cookbooks/apache/recipes/default.rb +++ b/cookbooks/apache/recipes/default.rb @@ -22,7 +22,7 @@ include_recipe "ssl" package "apache2" package "libwww-perl" -%w(event itk prefork worker).each do |mpm| +%w[event itk prefork worker].each do |mpm| if mpm == node[:apache][:mpm] apache_module "mpm_#{mpm}" do action [:enable] @@ -67,8 +67,14 @@ apache_module "deflate" do 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"