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
capability_bounding_set "CAP_NET_RAW"
ambient_capabilities "CAP_NET_RAW"
private_users false
+ subscribes :restart, "template[/etc/prometheus/exporters/smokeping.yml]"
end