Handle munin_allow and nagios_allow variables as arrays
This commit is contained in:
parent
e13e510b6e
commit
c8be8b86af
3 changed files with 17 additions and 4 deletions
|
@ -37,8 +37,9 @@ host_name <%= @homename %>
|
|||
# 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_allow %>
|
||||
<% @munin_allow.each do |allow| -%>
|
||||
allow <%= "^%s$" % allow.gsub('.', '\.') %>
|
||||
<% end -%>
|
||||
|
||||
# Which address to bind to;
|
||||
host <%= @ipaddress %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue