From bb17d97096e99f0f566a6054146b247eea2bf645 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Fri, 1 Mar 2024 18:36:26 +0100 Subject: Split router and tinc config --- roles/tinc/templates/tinc.conf.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/tinc/templates/tinc.conf.j2 (limited to 'roles/tinc/templates/tinc.conf.j2') diff --git a/roles/tinc/templates/tinc.conf.j2 b/roles/tinc/templates/tinc.conf.j2 new file mode 100644 index 0000000..b7011e1 --- /dev/null +++ b/roles/tinc/templates/tinc.conf.j2 @@ -0,0 +1,11 @@ +Name = {{ tinc.name }} +{% if tinc.listen_on is defined %} +AddressFamily = {{ tinc.listen_on }} +{% else %} +AddressFamily = ipv6 +{% endif %} +Interface = tn_int +Mode = switch +{% for conn in tinc.connections %} +ConnectTo = {{ conn }} +{% endfor %} -- cgit v1.2.3