summaryrefslogtreecommitdiffstats
path: root/roles/network
diff options
context:
space:
mode:
Diffstat (limited to 'roles/network')
-rw-r--r--roles/network/meta/argument_specs.yml4
-rw-r--r--roles/network/templates/bridge.nmconnection.j25
-rw-r--r--roles/network/templates/eth0-connection.nmconnection.j23
-rw-r--r--roles/network/templates/wifi-connection.nmconnection.j23
4 files changed, 14 insertions, 1 deletions
diff --git a/roles/network/meta/argument_specs.yml b/roles/network/meta/argument_specs.yml
index 5f74b45c..c501d8bb 100644
--- a/roles/network/meta/argument_specs.yml
+++ b/roles/network/meta/argument_specs.yml
@@ -21,6 +21,10 @@ argument_specs:
network_ipv4_dns:
type: "str"
description: "The network IP(4) gateway to configure when provided"
+ network_ipv6_gateway:
+ type: "str"
+ description: "Static IPv6 default route via router link-local (e.g. fe80::1/end0) — set when router RA is disabled"
+ required: false
network_bridge_interface:
type: "str"
description: "Physical NIC to enslave as vmbr0 bridge port"
diff --git a/roles/network/templates/bridge.nmconnection.j2 b/roles/network/templates/bridge.nmconnection.j2
index 0088a1a1..47f723d8 100644
--- a/roles/network/templates/bridge.nmconnection.j2
+++ b/roles/network/templates/bridge.nmconnection.j2
@@ -17,4 +17,7 @@ dns={{ network_ipv4_dns }}
[ipv6]
addr-gen-mode=default
-method=disabled
+method=auto
+{% if network_ipv6_gateway is defined %}
+routes=::/0,{{ network_ipv6_gateway }},100
+{% endif %}
diff --git a/roles/network/templates/eth0-connection.nmconnection.j2 b/roles/network/templates/eth0-connection.nmconnection.j2
index b1bc87a8..d6d2ea86 100644
--- a/roles/network/templates/eth0-connection.nmconnection.j2
+++ b/roles/network/templates/eth0-connection.nmconnection.j2
@@ -32,6 +32,9 @@ addr-gen-mode=default
method=disabled
{% else %}
method=auto
+{% if network_ipv6_gateway is defined %}
+routes=::/0,{{ network_ipv6_gateway }},100
+{% endif %}
{% endif %}
[proxy]
diff --git a/roles/network/templates/wifi-connection.nmconnection.j2 b/roles/network/templates/wifi-connection.nmconnection.j2
index 3d7667c8..5b4ab185 100644
--- a/roles/network/templates/wifi-connection.nmconnection.j2
+++ b/roles/network/templates/wifi-connection.nmconnection.j2
@@ -28,5 +28,8 @@ method=auto
[ipv6]
addr-gen-mode=default
method=auto
+{% if network_ipv6_gateway is defined %}
+routes=::/0,{{ network_ipv6_gateway }},100
+{% endif %}
[proxy]