#
package "apache2"
+package "libwww-perl"
if node[:lsb][:release].to_f < 14.04
package "apache2-mpm-#{node[:apache][:mpm]}" do
notifies :restart, "service[apache2]"
end
else
- ["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 ]
+ action [:enable]
end
else
apache_module "mpm_#{mpm}" do
- action [ :disable ]
+ action [:disable]
end
end
end
end
service "apache2" do
- action [ :enable, :start ]
+ action [:enable, :start]
supports :status => true, :restart => true, :reload => true
end
end
apache_module "reqtimeout" do
- action [ :disable ]
+ action [:disable]
end
munin_plugin "apache_accesses"