From ce50f672f5a136626d229b4a9c2e349dc62a4f83 Mon Sep 17 00:00:00 2001 From: David Gardner Date: Thu, 10 Nov 2022 13:01:34 +0000 Subject: [PATCH 1/2] Change debian configs to set up slave interfaces rather than explicitly remove them... --- manifests/bond/debian.pp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/manifests/bond/debian.pp b/manifests/bond/debian.pp index dc3356b5..19b6a781 100644 --- a/manifests/bond/debian.pp +++ b/manifests/bond/debian.pp @@ -61,9 +61,17 @@ options => $opts, } + $opts_slave = merge( { + 'bond-master' => $name, + }, + $slave_options + ) + network_config { $slaves: - ensure => absent, - reconfigure => true, - before => Network_config[$name], + ensure => $ensure, + method => 'manual', + onboot => true, + hotplug => false, + options => $opts_slave, } } From 5380bd47a7fce8ac19dae31ffa565da6814c1b08 Mon Sep 17 00:00:00 2001 From: David Gardner Date: Thu, 10 Nov 2022 13:37:48 +0000 Subject: [PATCH 2/2] Add note about systemd-networkd and netplan. --- manifests/bond/debian.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/bond/debian.pp b/manifests/bond/debian.pp index 19b6a781..0a3cbbef 100644 --- a/manifests/bond/debian.pp +++ b/manifests/bond/debian.pp @@ -2,6 +2,12 @@ # # Instantiate bonded interfaces on Debian based systems. # +# == Notes +# +# systemd-networkd and netplan need to be disabled or removed on +# recent versions of Ubuntu at least, as they conflict with static +# network configs in /etc/network/interfaces which this uses. +# # == See also # # * Debian Network Bonding http://wiki.debian.org/Bonding