Improve fastd service handling and default port

This commit is contained in:
Markus 2017-03-27 23:29:09 +02:00
parent 088e0f7de1
commit 016fce0043
2 changed files with 7 additions and 1 deletions

View File

@ -6,4 +6,4 @@ fastd_instance: "{{ site_code }}"
fastd_interface: vpn-{{ site_code }} fastd_interface: vpn-{{ site_code }}
fastd_mtu: 1280 fastd_mtu: 1280
fastd_peers_limit: -1 fastd_peers_limit: -1
fastd_port: 50000 fastd_port: 10000

View File

@ -22,6 +22,9 @@
- Reload systemd - Reload systemd
- Restart fastd - Restart fastd
- name: Disable fastd default instance
service: name=fastd enabled=no
- name: Create directories - name: Create directories
file: path=/etc/fastd/{{ fastd_instance }}/peers state=directory file: path=/etc/fastd/{{ fastd_instance }}/peers state=directory
@ -32,3 +35,6 @@
- name: Generate fastd secret - name: Generate fastd secret
fastd_key: path=/etc/fastd/{{ site_code }}/secret.conf fastd_key: path=/etc/fastd/{{ site_code }}/secret.conf
notify: Restart fastd notify: Restart fastd
- name: Enable fastd {{ site_code }}
service: name=fastd@{{ site_code }} enabled=yes