]> git.openstreetmap.org Git - chef.git/commitdiff
Don't use only_if on firewall_rule as it's a definition
authorTom Hughes <tom@compton.nu>
Tue, 10 Feb 2015 10:16:15 +0000 (10:16 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 10 Feb 2015 10:16:15 +0000 (10:16 +0000)
cookbooks/exim/recipes/default.rb

index 099e047c6cc1b821a8f13816a53455aeae3ef291..1bbd084ee5cd0319f98340efb28320cde7ed0c25 100644 (file)
@@ -144,11 +144,12 @@ else
   end
 end
 
-firewall_rule "deny-outbound-smtp" do
-  action :reject
-  source "fw"
-  dest "net"
-  proto "tcp:syn"
-  dest_ports "smtp"
-  only_if { node[:exim][:smarthost_via] }
+if node[:exim][:smarthost_via] # ~FC023
+  firewall_rule "deny-outbound-smtp" do
+    action :reject
+    source "fw"
+    dest "net"
+    proto "tcp:syn"
+    dest_ports "smtp"
+  end
 end