From 46cafb2f9ae259906affb14767d2f853dadd22be Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 24 Mar 2024 19:13:09 +0100 Subject: Fixup tinc role - add handler to restart - add variables - add IP addresses --- roles/tinc/templates/tinc-up.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roles/tinc/templates') diff --git a/roles/tinc/templates/tinc-up.j2 b/roles/tinc/templates/tinc-up.j2 index 8c26aa9..92aa782 100755 --- a/roles/tinc/templates/tinc-up.j2 +++ b/roles/tinc/templates/tinc-up.j2 @@ -1,7 +1,9 @@ #!/bin/sh ip link set $INTERFACE up ip -6 addr flush dev $INTERFACE -ip addr add {{ tinc.address }} dev $INTERFACE +{% for addr in tinc.address %} +ip addr add {{ addr }} dev $INTERFACE +{% endfor %} {% if tinc.extra_up is defined %} {% for cmd in tinc.extra_up %} {{ cmd }} -- cgit v1.2.3