diff options
author | uvok cheetah | 2024-03-24 19:13:09 +0100 |
---|---|---|
committer | uvok cheetah | 2024-03-24 19:13:09 +0100 |
commit | 46cafb2f9ae259906affb14767d2f853dadd22be (patch) | |
tree | b16a0b027683ebeaf56b3ead89812f47cd06539d /roles/tinc/templates | |
parent | 52363df735a0d8cd547d396695f75924496cf909 (diff) |
Fixup tinc role
- add handler to restart
- add variables
- add IP addresses
Diffstat (limited to 'roles/tinc/templates')
-rwxr-xr-x | roles/tinc/templates/tinc-up.j2 | 4 |
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 }} |