X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/20bb8440eac8354b1831b072dfe6c4263e7ff5d3..9d1da497d442b16de5ab68a9cf74f832059734e7:/cookbooks/prometheus/recipes/smokeping.rb?ds=sidebyside diff --git a/cookbooks/prometheus/recipes/smokeping.rb b/cookbooks/prometheus/recipes/smokeping.rb index 4f9906d32..27b0c6dd6 100644 --- a/cookbooks/prometheus/recipes/smokeping.rb +++ b/cookbooks/prometheus/recipes/smokeping.rb @@ -25,8 +25,8 @@ ip6_hosts = [] search(:node, "networking:interfaces") do |host| next if host.name == node.name - ip4_hosts << host[:fqdn] unless host.interfaces(:role => :external, :family => :inet).empty? - ip6_hosts << host[:fqdn] unless host.interfaces(:role => :external, :family => :inet6).empty? + ip4_hosts << host[:fqdn] unless host.ipaddresses(:role => :external, :family => :inet).empty? + ip6_hosts << host[:fqdn] unless host.ipaddresses(:role => :external, :family => :inet6).empty? end template "/etc/prometheus/exporters/smokeping.yml" do