]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/munin/templates/munin.conf.erb
html as cgi on menotti
[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 <% else -%>
15 # number of updaters to run
16 max_processes 96
17 html_strategy cgi
18 <% end -%>
19
20 graph_strategy cgi
21
22 includedir /etc/munin/munin-conf.d
23
24 <% if hostname != "menotti" -%>
25
26 dbdir   /var/lib/munin
27 htmldir /var/cache/munin/www
28 logdir  /var/log/munin
29 rundir  /var/run/munin
30 tmpldir /etc/munin/templates
31
32 <%= out = ''
33     scope.lookupvar('site::localinfo').keys.sort.each do |node|
34        if not scope.lookupvar('site::localinfo')[node]['no_munin']
35           out += '[' + node + ']
36     address ' + node + '
37
38 '
39        end 
40     end
41 out
42 %>
43 <% end -%>