# /etc/munin/munin-node.conf - config-file for munin-node
#
# This file is handled by puppet, any local changes will be lost
#

host_name  <%= fqdn %>
log_level  4
log_file   /var/log/munin/munin-node.log
port       4949
pid_file   /var/run/munin/munin-node.pid
background 1
setsid     1

# Which port to bind to;

user  root
group root

# Regexps for files to ignore

ignore_file ~$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.puppet-bak$

# Hosts to allow

<% Array(allow).flatten.each do |line|                        -%>
<%   if line.match(/^\d+\.\d+\.\d+\.\d+$/)                    -%>
<%=    line.gsub(".", "\\.").sub(/^/, "allow ^").sub(/$/, "$") %>
<%   elsif line.match(/^\d+\.\d+\.\d+\.\d+\/\d+$/)            -%>
<%=    line.sub(/^/, "cidr_allow ")                            %>
<%   end                                                      -%>
<% end                                                        -%>

<% Array(nodeconfig).each do |line| -%>
<%= line %>
<% end -%>

# /etc/munin/munin-node.conf - config-file for munin-node
#
# This file is handled by puppet, any local changes will be lost
#

host_name  <%= fqdn %>
log_level  4
log_file   /var/log/munin/munin-node.log
port       4949
pid_file   /var/run/munin-node.pid
background 1
setsid     1

# Which port to bind to;

user  root
group root

# Regexps for files to ignore

ignore_file ~$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.puppet-bak$

# Hosts to allow

<% Array(allow).flatten.each do |line|                        -%>
<%   if line.match(/^\d+\.\d+\.\d+\.\d+$/)                    -%>
<%=    line.gsub(".", "\\.").sub(/^/, "allow ^").sub(/$/, "$") %>
<%   elsif line.match(/^\d+\.\d+\.\d+\.\d+\/\d+$/)            -%>
<%=    line.sub(/^/, "cidr_allow ")                            %>
<%   end                                                      -%>
<% end                                                        -%>

<% Array(nodeconfig).each do |line| -%>
<%= line %>
<% end -%>

Use /var/run for pidfile for munin-node
Use /var/run for pidfile for munin-node

 - it runs as root, so no need for a subdirectory
