]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/recipes/server.rb
Fix munin backup script
[chef.git] / cookbooks / munin / recipes / server.rb
index 3e72ea160194a10cacbf5dea978fa837dd3aa502..675454de4c82124239f75a417a5a88c1f6e95ce6 100644 (file)
@@ -21,6 +21,7 @@ include_recipe "apache"
 
 package "munin"
 package "rrdcached"
 
 package "munin"
 package "rrdcached"
+package "libcgi-fast-perl"
 
 template "/etc/default/rrdcached" do
   source "rrdcached.erb"
 
 template "/etc/default/rrdcached" do
   source "rrdcached.erb"
@@ -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
 
   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
 
 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_stats"
 munin_plugin "munin_update"
+munin_plugin "munin_rrdcached"