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.
ansible-role-fastd/templates/fastd.conf.j2

23 lines
661 B
Plaintext
Raw Permalink Normal View History

# 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") }};
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 %}
{% if profile.value.bind |d(False) %}
bind {{ profile.value.bind }};
2021-04-11 22:34:52 +00:00
{% endif %}
include peers from "{{ config_dir }}/{{ profile.key }}/peers";
2021-04-11 22:34:52 +00:00
{% if profile.value.additional_config |d(False) %}
{{ profile.value.additional_config }}
{% endif %}
2021-06-05 16:57:05 +00:00