X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/fa135dc6a032a354ffb78b72947cb2b6be2910cd..2827bb4c1d2116657079719a078450513d647149:/cookbooks/munin/recipes/server.rb diff --git a/cookbooks/munin/recipes/server.rb b/cookbooks/munin/recipes/server.rb index 0c74cd0cc..675454de4 100644 --- a/cookbooks/munin/recipes/server.rb +++ b/cookbooks/munin/recipes/server.rb @@ -21,6 +21,7 @@ include_recipe "apache" package "munin" package "rrdcached" +package "libcgi-fast-perl" template "/etc/default/rrdcached" do source "rrdcached.erb" @@ -36,7 +37,7 @@ directory "/var/lib/munin/rrdcached" do end service "rrdcached" do - action [ :enable, :start ] + action [:enable, :start] subscribes :restart, "template[/etc/default/rrdcached]" end @@ -62,9 +63,31 @@ template "/etc/munin/munin.conf" do variables :expiry_time => expiry_time, :clients => clients, :frontends => frontends, :backends => backends, :tilecaches => tilecaches, :renderers => renderers end +apache_module "fcgid" +apache_module "rewrite" + +remote_directory "/srv/munin.openstreetmap.org" do + source "www" + owner "root" + group "root" + mode 0755 + files_owner "root" + files_group "root" + files_mode 0755 + purge true +end + apache_site "munin.openstreetmap.org" do template "apache.erb" end +template "/etc/cron.daily/munin-backup" do + source "backup.cron.erb" + owner "root" + group "root" + mode 0755 +end + munin_plugin "munin_stats" munin_plugin "munin_update" +munin_plugin "munin_rrdcached"