]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
first stab at munin.conf template
authorStephen Gran <steve@lobefin.net>
Mon, 18 Jan 2010 14:13:36 +0000 (14:13 +0000)
committerStephen Gran <steve@lobefin.net>
Mon, 18 Jan 2010 14:13:36 +0000 (14:13 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
manifests/site.pp
modules/munin-node/manifests/master.pp [new file with mode: 0644]
modules/munin-node/templates/munin.conf.erb [new file with mode: 0644]

index 64b54d2dddfcd019585ee20b9bf074f11bac1e58..2bc7939d85725c303ed55b4b841fc6630b9999cb 100644 (file)
@@ -51,6 +51,7 @@ node default {
     case $hostname {
         spohr: {
                       include nagios::server
+                      include munin-node::master
         }
         default: {
                      include nagios::client
diff --git a/modules/munin-node/manifests/master.pp b/modules/munin-node/manifests/master.pp
new file mode 100644 (file)
index 0000000..c7eb80b
--- /dev/null
@@ -0,0 +1,11 @@
+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"];
+    }
+}
+
diff --git a/modules/munin-node/templates/munin.conf.erb b/modules/munin-node/templates/munin.conf.erb
new file mode 100644 (file)
index 0000000..c04c5cc
--- /dev/null
@@ -0,0 +1,21 @@
+##
+### 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
+%>