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 099e047..1bbd084 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