summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2018-02-08 21:03:46 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2018-02-08 21:03:46 +0100
commit2354d5ad3e14a42bbf10a4659aba832fc8df176b (patch)
tree1ae6c5401b90e839733da490e871e7a4e2db3a0b /roles
parent4364aab1a9c21ed4fe6db8f19c57676da362df9a (diff)
endpoint for additional wireguard backbone peers is now optional
Diffstat (limited to 'roles')
-rw-r--r--roles/install_wireguard_backbone/templates/wg2.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/install_wireguard_backbone/templates/wg2.conf.j2 b/roles/install_wireguard_backbone/templates/wg2.conf.j2
index cbccda8..c30fcaf 100644
--- a/roles/install_wireguard_backbone/templates/wg2.conf.j2
+++ b/roles/install_wireguard_backbone/templates/wg2.conf.j2
@@ -5,5 +5,5 @@ PrivateKey = {{ wireguard_bb_priv_key }}
[Peer]
PublicKey = {{ item.pub_key }}
AllowedIPs = 0.0.0.0/0,::/0
-Endpoint = [{{ item.endpoint }}]:{{ wireguard_bb_port }}
+{% if item.endpoint is defined %}Endpoint = [{{ item.endpoint }}]:{{ wireguard_bb_port }}{% endif %}
PersistentKeepalive = 30