X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3ee5c4d242a98a13d89a02ba7998610a20969e0c..2e17bd4b4697423f9c124cfdb802424a58c16d80:/cookbooks/prometheus/resources/exporter.rb?ds=inline diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index 0e1d9d6e4..66dcd2b29 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -78,9 +78,9 @@ action :create do firewall_rule "accept-prometheus-#{new_resource.exporter}" do action :accept - source "osm" - dest "fw" - proto "tcp" + context :incoming + protocol :tcp + source :osm dest_ports new_resource.port only_if { node[:prometheus][:mode] == "external" } end