summaryrefslogtreecommitdiff
path: root/templates/munin-node.conf.Debian.etch
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2008-05-26 11:21:28 +0200
committerMarcel Haerry <haerry@puzzle.ch>2008-05-26 11:21:28 +0200
commit013317ba7744477be001bb3850f69ec37cc1540b (patch)
tree2656f7be20f75cb63401440286c6e583ecbceff7 /templates/munin-node.conf.Debian.etch
parent5547be2954d17040727d048d16fb245965ebe144 (diff)
made munin_allow a lot more scalable
Diffstat (limited to 'templates/munin-node.conf.Debian.etch')
-rw-r--r--templates/munin-node.conf.Debian.etch6
1 files changed, 4 insertions, 2 deletions
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 -%>
+