diff options
Diffstat (limited to 'templates/munin-node.conf.Debian.lenny')
-rw-r--r-- | templates/munin-node.conf.Debian.lenny | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/templates/munin-node.conf.Debian.lenny b/templates/munin-node.conf.Debian.lenny index 07f4980..56da89d 100644 --- a/templates/munin-node.conf.Debian.lenny +++ b/templates/munin-node.conf.Debian.lenny @@ -29,15 +29,11 @@ ignore_file \.rpm(save|new)$ #host_name localhost.localdomain host_name <%= fqdn %> -# A list of addresses that are allowed to connect. -<% -if ! munin_cidr_allow.is_a?(Array) then - allows = [ munin_cidr_allow ] -else - allows = munin_cidr_allow -end - -allows.each do |cidr| --%> -cidr_allow <%= cidr %> +# A list of addresses that are allowed to connect. This must be a +# regular expression, due to brain damage in Net::Server, which +# doesn't understand CIDR-style network notation. You may repeat +# the allow line as many times as you'd like +<% real_munin_allow.split(':').each do |val| -%> +allow <%= '^'+val.gsub(/\./, '\.')+'$' %> <% end -%> + |