]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/munin/templates/munin.conf.erb
Explicitly set graph-strategy
[dsa-puppet.git] / modules / munin / templates / munin.conf.erb
1 ##
2 ### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 <% if hostname != "menotti" -%>
7
8 dbdir   /var/lib/munin
9 htmldir /var/cache/munin/www
10 logdir  /var/log/munin
11 rundir  /var/run/munin
12 tmpldir /etc/munin/templates
13
14 <% end -%>
15
16
17 graph_strategy cgi
18
19 includedir /etc/munin/munin-conf.d
20
21 <% if hostname != "menotti" -%>
22
23 dbdir   /var/lib/munin
24 htmldir /var/cache/munin/www
25 logdir  /var/log/munin
26 rundir  /var/run/munin
27 tmpldir /etc/munin/templates
28
29 <%= out = ''
30     scope.lookupvar('site::localinfo').keys.sort.each do |node|
31        if not scope.lookupvar('site::localinfo')[node]['no_munin']
32           out += '[' + node + ']
33     address ' + node + '
34
35 '
36        end 
37     end
38 out
39 %>
40 <% end -%>