From 6f07852460cf475c37dd5b2cc94857d2e9e05070 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Mon, 21 Aug 2023 18:17:09 +0200 Subject: tinc: Add extra commands --- roles/router/templates/tinc-up.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles') diff --git a/roles/router/templates/tinc-up.j2 b/roles/router/templates/tinc-up.j2 index 93ab205..8c26aa9 100755 --- a/roles/router/templates/tinc-up.j2 +++ b/roles/router/templates/tinc-up.j2 @@ -2,3 +2,8 @@ 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