]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/resources/exporter.rb
Avoid alerting on transient taginfo size changes during updates
[chef.git] / cookbooks / prometheus / resources / exporter.rb
index 0e1d9d6e46a1be1ac8ffd8be33aa0cc836b58dcc..66dcd2b294ac354ee21f7415b19121576a9fb395 100644 (file)
@@ -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