aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/templates/wireguard/network.conf.erb
blob: 0528050ca89ff5b5b7f81b2e9384dab0f8c95d8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Interface]
<%- @ips.each do |ip| %>
Address = <%= ip %>
<% end -%>
PrivateKey = <%= @private_key %>

<%- @facts["ldapvar"]["other"].each do |host| -%>
<%- if (host["vars"]["wireguard_public"] || []).count > 0 %>
[Peer]
PublicKey = host["vars"]["wireguard_public"][0]

<% end -%>
<%- end -%>