]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/templates/default/wireguard.netdev.erb
Show RSS links for main .torrent files on index page
[chef.git] / cookbooks / networking / templates / default / wireguard.netdev.erb
index 7866f97a4d093fb5bd25e5154c2767d6f3f07b4f..248bde252660c11b56407260aba5eda7e6972663 100644 (file)
@@ -9,7 +9,7 @@ PrivateKey=<%= IO.read("/var/lib/systemd/wireguard/private.key").chomp %>
 PrivateKeyFile=/var/lib/systemd/wireguard/private.key
 <% end -%>
 ListenPort=51820
 PrivateKeyFile=/var/lib/systemd/wireguard/private.key
 <% end -%>
 ListenPort=51820
-<% node[:networking][:wireguard][:peers].each do |peer| -%>
+<% node[:networking][:wireguard][:peers].sort_by { |p| p[:public_key] }.each do |peer| -%>
 
 [WireGuardPeer]
 PublicKey=<%= peer[:public_key] %>
 
 [WireGuardPeer]
 PublicKey=<%= peer[:public_key] %>