include_recipe "apache"
package "munin"
+package "rrdcached"
+
+template "/etc/default/rrdcached" do
+ source "rrdcached.erb"
+ owner "root"
+ group "root"
+ mode 0644
+end
+
+directory "/var/lib/munin/rrdcached" do
+ owner "munin"
+ group "munin"
+ mode 0755
+end
+
+service "rrdcached" do
+ action [ :enable, :start ]
+ subscribes :restart, "template[/etc/default/rrdcached]"
+end
expiry_time = 14 * 86400
# DO NOT EDIT - This file is being maintained by Chef
+# Use rrdcached
+rrdcached_socket /var/run/rrdcached.sock
+
# Configure alert targets
contact.admins.command mail -s "Munin Notification" admins@openstreetmap.org
contact.null.command cat > /dev/null
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+# 0: start rrdcached on boot, 1: do not start rrdcached on boot
+# default: 0
+DISABLE=0
+
+# options to be passed to rrdcached
+# (do not specify -p <pidfile> - this is handled by the init script)
+# default: see /etc/init.d/rrdcached
+OPTS="-s munin -m 660 -l unix:/var/run/rrdcached.sock -w 1800 -z 1800 -j /var/lib/munin/rrdcached -F -b /var/lib/munin -B"
+
+# number of seconds to wait for rrdcached to shut down
+# (writing the data to disk may take some time;
+# tune this according to your setup)
+# default: 30
+MAXWAIT=30
+
+# 0: do not enable core-files, 1: enable core-files ... if rrdcached crashes
+# default: 0
+ENABLE_COREFILES=0