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-up.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 roles/tinc/templates/tinc-up.j2 (limited to 'roles/tinc/templates/tinc-up.j2') diff --git a/roles/tinc/templates/tinc-up.j2 b/roles/tinc/templates/tinc-up.j2 new file mode 100755 index 0000000..8c26aa9 --- /dev/null +++ b/roles/tinc/templates/tinc-up.j2 @@ -0,0 +1,9 @@ +#!/bin/sh +ip link set $INTERFACE up +ip -6 addr flush dev $INTERFACE +ip addr add {{ tinc.address }} dev $INTERFACE +{% if tinc.extra_up is defined %} +{% for cmd in tinc.extra_up %} +{{ cmd }} +{% endfor %} +{% endif %} -- cgit v1.2.3