3
0
Fork 0
This commit is contained in:
Robert Edström 2020-07-16 21:43:53 +09:00 committed by GitHub
commit 564c9fb79a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,10 @@
Changelog
---------
**6.4.0**
- Support specifying optional `wireguard_preshared_key` (contribution by @legogris)
**6.3.1**
- Support Openstack Debian images (contribution by @pallinger)

View File

@ -38,6 +38,9 @@ wireguard_port: "51820"
# The default interface name that wireguard should use if not specified otherwise.
wireguard_interface: "wg0"
# Preshared key to use for all peers (optional)
wireguard_preshared_key: "abc123"
```
The following variable is mandatory and needs to be configured for every host in `host_vars/`:

View File

@ -50,6 +50,9 @@ SaveConfig = true
{% else %}
AllowedIPs = {{hostvars[host].wireguard_ip}}/32
{% endif %}
{% if wireguard_preshared_key is defined %}
PresharedKey = {{wireguard_preshared_key}}
{% endif %}
{% if hostvars[host].wireguard_persistent_keepalive is defined %}
PersistentKeepalive = {{hostvars[host].wireguard_persistent_keepalive}}
{% endif %}