X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7ed52aa263620b099a814d4b952a9b8c92cdbbcb..e7480ece98a77cb55c8e54f8a2ae90ec962039c2:/cookbooks/networking/templates/default/wireguard.network.erb?ds=inline diff --git a/cookbooks/networking/templates/default/wireguard.network.erb b/cookbooks/networking/templates/default/wireguard.network.erb index 5e215b184..481fe14ff 100644 --- a/cookbooks/networking/templates/default/wireguard.network.erb +++ b/cookbooks/networking/templates/default/wireguard.network.erb @@ -12,7 +12,7 @@ Address=<%= node[:networking][:wireguard][:address] %>/128 [Route] Destination=fd43:e709:ea6d:1::/64 -<% node[:networking][:wireguard][:peers].each do |peer| -%> +<% node[:networking][:wireguard][:peers].sort_by { |p| p[:public_key] }.each do |peer| -%> <% Array(peer[:allowed_ips]).sort.each do |ip| -%> <% unless ip =~ /^fd43:e709:ea6d:1::/ -%>