Skip to content

Commit d85b0ef

Browse files
author
Klavs Klavsen
committed
Merge pull request 'Updated the network wait online for bonded interace' (#1546) from fix_network into master
Reviewed-on: https://gitea.obmondo.com/EnableIT/LinuxAid/pulls/1546
2 parents 7ef8be4 + 25639ca commit d85b0ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/enableit/common/manifests/network.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@
105105
'systemd-networkd': {
106106
include ::common::system::systemd
107107

108+
# With bonded interfaces, systemd-networkd-wait-online waits for ALL managed interfaces
109+
# (bond + both slaves) to reach "online" state. LACP negotiation can exceed the default
110+
# timeout, causing boot failures. --any makes the service succeed as soon as at least one
111+
# interface is online.
112+
systemd::dropin_file { 'wait-online-any.conf':
113+
unit => 'systemd-networkd-wait-online.service',
114+
content => "[Service]\nExecStart=\nExecStart=/lib/systemd/systemd-networkd-wait-online --any\n",
115+
}
116+
108117
# Bonded not supported
109118
$interfaces.each |$_name, $_config| {
110119
if type($_config['ipaddress']) =~ Type[Stdlib::IP::Address::V4::CIDR] or $_uses_dhcp {

0 commit comments

Comments
 (0)