Skip to content

Commit d786fef

Browse files
authored
Merge branch 'master' into 26
2 parents 3b52a8b + cf147e4 commit d786fef

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ Default value: `false`
523523

524524
Data type: `Enum['stopped','running']`
525525

526-
The state that the ``networkd`` service should be in
526+
The state that the ``networkd`` service should be in. **Warning** Since since v260 of systemd ensuring the service is stopped may only be transient, it is very likely some socket will activate the service nearly immediatly.
527527

528528
Default value: `'running'`
529529

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
# Manage the systemd network daemon
9696
#
9797
# @param networkd_ensure
98-
# The state that the ``networkd`` service should be in
98+
# The state that the ``networkd`` service should be in. **Warning** Since since v260 of systemd ensuring the service is stopped may only be transient, it is very likely some socket will activate the service nearly immediatly.
9999
#
100100
# @param networkd_package
101101
# Name of the package required for systemd-networkd, if any

spec/acceptance/networkd_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ class { 'systemd':
4242
context 'configure systemd stopped' do
4343
let(:manifest) do
4444
<<~PUPPET
45+
# Stop networkd triggering sockets first so can
46+
# reach a stable state.
47+
if Integer($facts['systemd_version']) >= 260 {
48+
service{ [
49+
'systemd-networkd-varlink.socket',
50+
'systemd-networkd-varlink-metrics.socket',
51+
'systemd-networkd-resolve-hook.socket' ]:
52+
ensure => 'stopped',
53+
}
54+
}
55+
4556
class { 'systemd':
4657
manage_networkd => true,
4758
networkd_ensure => 'stopped',

0 commit comments

Comments
 (0)