]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/munin-node/templates/munin-node.conf.erb
(www) Add redirections for some old Refresh hacks
[dsa-puppet.git] / modules / munin-node / templates / munin-node.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 #
7 # Example config-file for munin-node
8 #
9
10 log_level 4
11 log_file /var/log/munin/munin-node.log
12 port 4949
13 pid_file /var/run/munin/munin-node.pid
14 background 1
15 setsid 1
16
17 # Which port to bind to;
18 host *
19 user root
20 group root
21 setsid yes
22
23 # Regexps for files to ignore
24
25 ignore_file ~$
26 ignore_file \.bak$
27 ignore_file %$
28 ignore_file \.dpkg-(tmp|new|old|dist)$
29 ignore_file \.rpm(save|new)$
30
31 # Set this if the client doesn't report the correct hostname when
32 # telnetting to localhost, port 4949
33 #
34 #host_name localhost.localdomain
35
36 # A list of addresses that are allowed to connect.  This must be a
37 # regular expression, due to brain damage in Net::Server, which
38 # doesn't understand CIDR-style network notation.  You may repeat
39 # the allow line as many times as you'd like
40
41 <%=
42 str = ''
43 localinfo.keys.sort.each do |node|
44    if localinfo[node]['muninmaster']
45       allnodeinfo[node]['ipHostNumber'].each do |ip|
46          str += "allow ^" + ip.split('.').join('\.') + "$\n"
47       end
48    end
49 end
50 str
51 -%>