Skip to content

Commit

Permalink
Add some comments to wgquick config file
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianrakel committed Aug 8, 2022
1 parent 1508a55 commit a9fabc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/wireguard_conf.epp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Array[Hash] $addresses,
Optional[String[1]] $preshared_key,
| -%>
# THIS FILE IS MANAGED BY PUPPET
[Interface]
<% $addresses.each |$address| { -%>
Address = <%= $address['Address'] %>
Expand All @@ -13,6 +14,9 @@ ListenPort = <%= $dport %>
PostUp = wg set %i private-key /etc/wireguard/<%= $interface %>
<% $peers.each |$peer| { -%>

<% if $peer['description'] { -%>
# <%= $peer['description'] %>
<% } -%>
[Peer]
PublicKey=<%= $peer['public_key'] %>
<% if $peer['endpoint'] { -%>
Expand Down

0 comments on commit a9fabc9

Please sign in to comment.