From 1e462256fe641067f22f9921f2db28ace03f401f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se>
Date: Sun, 31 Jan 2021 20:03:23 +0000
Subject: [PATCH] Change how debian network is configured.

---
 manifests/public_ip.pp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/manifests/public_ip.pp b/manifests/public_ip.pp
index 2ad8c83..7a393a8 100644
--- a/manifests/public_ip.pp
+++ b/manifests/public_ip.pp
@@ -39,6 +39,15 @@ class lysnetwork::public_ip {
     }
     'Debian': {
       package { 'resolvconf': ensure => installed }
+      # https://forge.puppet.com/modules/example42/network
+      # Debian seem to require a separate interface rule per
+      # interface, per network stack.
+      network::interface { "${iface}v6":
+        enable    => true,
+        interface => $iface,
+        ipaddress => "2001:6b0:17:f0a0::${last_octet_16}",
+        gateway   => '2001:6b0:17:f0a0::1',
+      }
     }
     default: {}
   }
-- 
GitLab