diff modules/privat/templates/eth0.epp @ 449:4a6ad700cded

Update config for real Raspberry Pi host * Add node config * Change Amavis setup because of Ubuntu differences * Change secondary IP address setup because Ubuntu still uses older networking approach * Make Postfix config more flexible
author IBBoard <dev@ibboard.co.uk>
date Wed, 26 Jul 2023 15:30:19 +0100
parents
children 8a3c3eb60fdd
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/privat/templates/eth0.epp	Wed Jul 26 15:30:19 2023 +0100
@@ -0,0 +1,41 @@
+<%- |
+	Stdlib::IP::Address::V6 $default_address,
+	Stdlib::IP::Address::V6 $gateway_address,
+	Stdlib::IP::Address::V6 $prefix_address, # Not actually an IP, but looks like one
+| -%>
+auto eth0
+no-auto-down eth0
+iface eth0 inet6 static
+    address <%= $default_address %>
+    netmask 64
+    gateway <%= $gateway_address %>
+iface eth0:1 inet6 static
+   address <%= $prefix_address %>:1
+   netmask 64
+iface eth0:2 inet6 static
+   address <%= $prefix_address %>:2
+   netmask 64
+iface eth0:3 inet6 static
+   address <%= $prefix_address %>:3
+   netmask 64
+iface eth0:4 inet6 static
+   address <%= $prefix_address %>:4
+   netmask 64
+iface eth0:5 inet6 static
+   address <%= $prefix_address %>:5
+   netmask 64
+iface eth0:6 inet6 static
+   address <%= $prefix_address %>:6
+   netmask 64
+iface eth0:7 inet6 static
+   address <%= $prefix_address %>:7
+   netmask 64
+iface eth0:8 inet6 static
+   address <%= $prefix_address %>:8
+   netmask 64
+iface eth0:9 inet6 static
+   address <%= $prefix_address %>:9
+   netmask 64
+iface eth0:10 inet6 static
+   address <%= $prefix_address %>:10
+   netmask 64