This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
2021-10-16 13:48:16 +00:00
|
|
|
# ansible managed
|
|
|
|
|
|
|
|
secret "{{ profile.value.private_key |mandatory('A profile required a private_key') }}";
|
2021-06-05 16:57:05 +00:00
|
|
|
log level {{ profile.value.log_level |d("info") }};
|
2021-10-16 13:48:16 +00:00
|
|
|
interface "{{ profile.value.interface |d('fastd_%s' |format(profile.key)) }}";
|
2021-04-11 22:34:52 +00:00
|
|
|
mode {{ profile.value.mode |d("tap") }};
|
|
|
|
mtu {{ profile.value.mtu |d("1280") }};
|
|
|
|
|
|
|
|
{% for method in profile.value.methods |d(['null']) %}
|
|
|
|
method "{{ method }}";
|
|
|
|
{% endfor %}
|
|
|
|
|
2021-10-16 13:48:16 +00:00
|
|
|
{% if profile.value.bind |d(False) %}
|
|
|
|
bind {{ profile.value.bind }};
|
2021-04-11 22:34:52 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2021-10-16 13:48:16 +00:00
|
|
|
include peers from "{{ config_dir }}/{{ profile.key }}/peers";
|
2021-04-11 22:34:52 +00:00
|
|
|
|
2021-10-16 13:48:16 +00:00
|
|
|
{% if profile.value.additional_config |d(False) %}
|
|
|
|
{{ profile.value.additional_config }}
|
|
|
|
{% endif %}
|
2021-06-05 16:57:05 +00:00
|
|
|
|