]> git.openstreetmap.org Git - chef.git/commitdiff
Fix munin node configuration
authorTom Hughes <tom@compton.nu>
Sat, 11 Mar 2023 14:34:10 +0000 (14:34 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 11 Mar 2023 14:34:10 +0000 (14:34 +0000)
cookbooks/munin/templates/default/munin-node.conf.erb

index 4f3580b563ba9e7a1eec94e333c6d8fdf43f39fb..f2e09d7e9cd61219d6997a34aef56e382be5f0e2 100644 (file)
@@ -32,9 +32,7 @@ port 4949
 # List the addresses that are allowed to connect
 allow ^127\.0\.0\.1$
 <% @servers.each do |server| -%>
-<% server.interfaces do |interface| -%>
-allow ^<%= Regexp.quote(interface[:address]) %>$
-<% end -%>
+allow ^<%= Regexp.quote(server) %>$
 <% end -%>
 <% node[:munin][:allow].each do |address| -%>
 allow ^<%= Regexp.quote(address) %>$