From 013317ba7744477be001bb3850f69ec37cc1540b Mon Sep 17 00:00:00 2001 From: Marcel Haerry Date: Mon, 26 May 2008 11:21:28 +0200 Subject: made munin_allow a lot more scalable --- templates/munin-node.conf.Debian.etch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'templates/munin-node.conf.Debian.etch') diff --git a/templates/munin-node.conf.Debian.etch b/templates/munin-node.conf.Debian.etch index 0f0f568..56da89d 100644 --- a/templates/munin-node.conf.Debian.etch +++ b/templates/munin-node.conf.Debian.etch @@ -33,5 +33,7 @@ host_name <%= fqdn %> # 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 -allow <%= munin_allow1 %> -allow <%= munin_allow2 %> +<% real_munin_allow.split(':').each do |val| -%> +allow <%= '^'+val.gsub(/\./, '\.')+'$' %> +<% end -%> + -- cgit v1.2.3