Signed-off-by: Stephen Gran <steve@lobefin.net>
case $hostname {
spohr: {
include nagios::server
+ include munin-node::master
}
default: {
include nagios::client
--- /dev/null
+class munin-node::master inherits munin-node {
+
+ package { munin: ensure => installed }
+
+ file {
+ "/etc/munin/munin.conf":
+ content => template("munin/munin.conf.erb"),
+ require => Package["munin"];
+ }
+}
+
--- /dev/null
+##
+### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+dbdir /var/lib/munin
+htmldir /var/www/munin
+logdir /var/log/munin
+rundir /var/run/munin
+tmpldir /etc/munin/templates
+graph_strategy cgi
+
+<%= out = ''
+ localinfo.keys.sort.each do |node|
+ out += '[ ' + node + ' ]
+ address ' + node + '
+
+'
+ end
+out
+%>