X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/339e24f1e3e2275712e5b3e2163c403113b4605d..ff14db18dc25c183adff0b7bf651943253405284:/cookbooks/exim/recipes/default.rb diff --git a/cookbooks/exim/recipes/default.rb b/cookbooks/exim/recipes/default.rb index 8a1fd5efb..f8a50f9c9 100644 --- a/cookbooks/exim/recipes/default.rb +++ b/cookbooks/exim/recipes/default.rb @@ -77,18 +77,6 @@ end relay_from_hosts = node[:exim][:relay_from_hosts] if node[:exim][:smarthost_name] - search(:node, "roles:gateway") do |gateway| - allowed_ips = gateway.interfaces(:role => :internal).map do |interface| - "#{interface[:network]}/#{interface[:prefix]}" - end - - node.default[:networking][:wireguard][:peers] << { - :public_key => gateway[:networking][:wireguard][:public_key], - :allowed_ips => allowed_ips, - :endpoint => "#{gateway.name}:51820" - } - end - search(:node, "exim_smarthost_via:#{node[:exim][:smarthost_name]}\\:*").each do |host| relay_from_hosts |= host.ipaddresses(:role => :external) end