aboutsummaryrefslogtreecommitdiffstats
path: root/roles/obsd_network/templates
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-11-13 23:56:23 -0800
committerEugene Triguba <hello@eugenetriguba.com>2026-11-13 23:56:23 -0800
commitcc1f2e71b40df5c0d79f5d2796f3c3c9f39c7fa0 (patch)
tree9cebf3294e4f6c94d12d6601604432cf795cece3 /roles/obsd_network/templates
parentSet go import header to make go install work (diff)
downloadsite-configs-cc1f2e71b40df5c0d79f5d2796f3c3c9f39c7fa0.zip
Add ipv6 handling
Diffstat (limited to 'roles/obsd_network/templates')
-rw-r--r--roles/obsd_network/templates/hostname.if.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/obsd_network/templates/hostname.if.j2 b/roles/obsd_network/templates/hostname.if.j2
new file mode 100644
index 0000000..d43c9fd
--- /dev/null
+++ b/roles/obsd_network/templates/hostname.if.j2
@@ -0,0 +1,3 @@
+inet autoconf
+inet6 {{ obsd_network_ipv6.address.split('/') | join(' ') }}
+!route -qn add -inet6 default {{ obsd_network_ipv6.gateway }}%{{ obsd_network_interface }}