X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/3a4d52bd4c0f8e6ae7679145846b7bc7845d8ace..a31229e5ab1291d79d14ac9bf4ad210db4895cea:/cookbooks/exim/recipes/default.rb diff --git a/cookbooks/exim/recipes/default.rb b/cookbooks/exim/recipes/default.rb index c334f9ced..1bbd084ee 100644 --- a/cookbooks/exim/recipes/default.rb +++ b/cookbooks/exim/recipes/default.rb @@ -53,7 +53,7 @@ execute "/etc/ssl/certs/exim.pem" do end service "exim4" do - action [ :enable, :start ] + action [:enable, :start] supports :status => true, :restart => true, :reload => true subscribes :restart, "execute[/etc/ssl/certs/exim.pem]" end @@ -61,14 +61,14 @@ end relay_to_domains = node[:exim][:relay_to_domains] node[:exim][:routes].each_value do |route| - relay_to_domains = relay_to_domains | route[:domains] if route[:host] + relay_to_domains |= route[:domains] if route[:host] end relay_from_hosts = node[:exim][:relay_from_hosts] if node[:exim][:smarthost_name] search(:node, "exim_smarthost_via:#{node[:exim][:smarthost_name]}\\:*").each do |host| - relay_from_hosts = relay_from_hosts | host.ipaddresses(:role => :external) + relay_from_hosts |= host.ipaddresses(:role => :external) end end @@ -144,7 +144,7 @@ else end end -if node[:exim][:smarthost_via] +if node[:exim][:smarthost_via] # ~FC023 firewall_rule "deny-outbound-smtp" do action :reject source "fw"