]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - modules/profile/templates/wireguard/network.conf.erb
Add wireguard profile
[perso/Immae/Projets/Puppet.git] / modules / profile / templates / wireguard / network.conf.erb
1 [Interface]
2 <%- @ips.each do |ip| %>
3 Address = <%= ip %>
4 <% end -%>
5 PrivateKey = <%= @private_key %>
6
7 <%- @facts["ldapvar"]["other"].each do |host| -%>
8 <%- if (host["vars"]["wireguard_public"] || []).count > 0 %>
9 [Peer]
10 PublicKey = host["vars"]["wireguard_public"][0]
11
12 <% end -%>
13 <%- end -%>