summaryrefslogtreecommitdiff
path: root/roles/tinc/templates
diff options
context:
space:
mode:
authoruvok cheetah2024-03-24 19:13:09 +0100
committeruvok cheetah2024-03-24 19:13:09 +0100
commit46cafb2f9ae259906affb14767d2f853dadd22be (patch)
treeb16a0b027683ebeaf56b3ead89812f47cd06539d /roles/tinc/templates
parent52363df735a0d8cd547d396695f75924496cf909 (diff)
Fixup tinc role
- add handler to restart - add variables - add IP addresses
Diffstat (limited to 'roles/tinc/templates')
-rwxr-xr-xroles/tinc/templates/tinc-up.j24
1 files changed, 3 insertions, 1 deletions
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 }}