ansible-role-fastd/templates/fastd.conf.j2

23 lines
661 B
Django/Jinja

# ansible managed
secret "{{ profile.value.private_key |mandatory('A profile required a private_key') }}";
log level {{ profile.value.log_level |d("info") }};
interface "{{ profile.value.interface |d('fastd_%s' |format(profile.key)) }}";
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 }};
{% endif %}
include peers from "{{ config_dir }}/{{ profile.key }}/peers";
{% if profile.value.additional_config |d(False) %}
{{ profile.value.additional_config }}
{% endif %}