diff --git a/manifests/bond/debian.pp b/manifests/bond/debian.pp index dc3356b5..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 @@ -61,9 +67,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, } }