From: Tom Hughes Date: Sat, 11 Mar 2023 14:34:10 +0000 (+0000) Subject: Fix munin node configuration X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/ab2ede3f7ce07400d8183302431f85fe955e8bfb?hp=2e17bd4b4697423f9c124cfdb802424a58c16d80 Fix munin node configuration --- diff --git a/cookbooks/munin/templates/default/munin-node.conf.erb b/cookbooks/munin/templates/default/munin-node.conf.erb index 4f3580b56..f2e09d7e9 100644 --- a/cookbooks/munin/templates/default/munin-node.conf.erb +++ b/cookbooks/munin/templates/default/munin-node.conf.erb @@ -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) %>$