X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b9ec4b60ee39614d1d083d7220e76b07d2b275f..3a33d35c42600aa215df8467702c98bee73415f8:/cookbooks/munin/templates/default/munin-node.conf.erb diff --git a/cookbooks/munin/templates/default/munin-node.conf.erb b/cookbooks/munin/templates/default/munin-node.conf.erb index 0ff07cb3c..6bd38df19 100644 --- a/cookbooks/munin/templates/default/munin-node.conf.erb +++ b/cookbooks/munin/templates/default/munin-node.conf.erb @@ -23,7 +23,7 @@ ignore_file \.rpm(save|new)$ ignore_file \.pod$ # Set the hostname -host_name <%= node[:hostname] -%>.openstreetmap.org +host_name <%= node.name %> # List on port 4949 on all interfaces host * @@ -31,13 +31,8 @@ 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 -%> -<% if server[:openvpn] -%> -allow ^<%= Regexp.quote(server[:openvpn][:address]) %>$ -<% end -%> +<% @servers.sort.each do |server| -%> +allow ^<%= Regexp.quote(server) %>$ <% end -%> <% node[:munin][:allow].each do |address| -%> allow ^<%= Regexp.quote(address) %>$