X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/90a349e0bc558441e65156eabb585c578d93fbfd..ae4d13c8ba1b86d2f94bcdec799d0db052425333:/cookbooks/apache/recipes/default.rb diff --git a/cookbooks/apache/recipes/default.rb b/cookbooks/apache/recipes/default.rb index 9b6c6ef54..559fc83b0 100644 --- a/cookbooks/apache/recipes/default.rb +++ b/cookbooks/apache/recipes/default.rb @@ -19,8 +19,10 @@ include_recipe "ssl" -package "apache2" -package "libwww-perl" +package %w[ + apache2 + libwww-perl +] %w[event itk prefork worker].each do |mpm| if mpm == node[:apache][:mpm] @@ -67,10 +69,17 @@ 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 "headers" apache_module "ssl" apache_conf "ssl" do