Skip to content

Commit

Permalink
Install systemd-networkd package, if any
Browse files Browse the repository at this point in the history
On Red Hat systems networkd is packaged as systemd-networkd. In
particular:

* EL7
* EL8/EL9 shipped in EPEL
* Fedora since 33
  • Loading branch information
ekohl committed Oct 18, 2023
1 parent 28a3093 commit 2818ce7
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 0 deletions.
9 changes: 9 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ The following parameters are available in the `systemd` class:
* [`use_stub_resolver`](#-systemd--use_stub_resolver)
* [`manage_networkd`](#-systemd--manage_networkd)
* [`networkd_ensure`](#-systemd--networkd_ensure)
* [`networkd_package`](#-systemd--networkd_package)
* [`manage_timesyncd`](#-systemd--manage_timesyncd)
* [`timesyncd_ensure`](#-systemd--timesyncd_ensure)
* [`timesyncd_package`](#-systemd--timesyncd_package)
Expand Down Expand Up @@ -321,6 +322,14 @@ The state that the ``networkd`` service should be in

Default value: `'running'`

##### <a name="-systemd--networkd_package"></a>`networkd_package`

Data type: `Optional[String[1]]`

Name of the package required for systemd-networkd, if any

Default value: `undef`

##### <a name="-systemd--manage_timesyncd"></a>`manage_timesyncd`

Data type: `Boolean`
Expand Down
2 changes: 2 additions & 0 deletions data/RedHat-family.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
systemd::networkd_package: systemd-networkd
5 changes: 5 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
# @param networkd_ensure
# The state that the ``networkd`` service should be in
#
# @param networkd_package
# Name of the package required for systemd-networkd, if any
#
# @param manage_timesyncd
# Manage the systemd timesyncd daemon
#
Expand Down Expand Up @@ -201,6 +204,7 @@
Boolean $use_stub_resolver = false,
Boolean $manage_networkd = false,
Enum['stopped','running'] $networkd_ensure = 'running',
Optional[String[1]] $networkd_package = undef,
Boolean $manage_timesyncd = false,
Enum['stopped','running'] $timesyncd_ensure = 'running',
Optional[String[1]] $timesyncd_package = undef,
Expand Down Expand Up @@ -281,6 +285,7 @@

if $manage_networkd and $facts['systemd_internal_services'] and $facts['systemd_internal_services']['systemd-networkd.service'] {
contain systemd::networkd
Class['systemd::install'] -> Class['systemd::networkd']
}

if $manage_timesyncd and $facts['systemd_internal_services'] and $facts['systemd_internal_services']['systemd-timesyncd.service'] {
Expand Down
6 changes: 6 additions & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
# @api private
#
class systemd::install {
if $systemd::manage_networkd and $systemd::networkd_package {
package { $systemd::networkd_package:
ensure => present,
}
}

if $systemd::manage_resolved and $systemd::resolved_package {
package { $systemd::resolved_package:
ensure => present,
Expand Down
52 changes: 52 additions & 0 deletions spec/acceptance/networkd_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'

describe 'systemd with manage_networkd true' do
has_package = fact('os.family') == 'RedHat'

context 'configure systemd-networkd' do
let(:manifest) do
<<~PUPPET
class { 'systemd':
manage_networkd => true,
}
PUPPET
end

it 'works idempotently with no errors' do

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193656150.pp.hVrqka Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux8-64-puppet7.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657818' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.77 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 8

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193658369.pp.GO4xRG Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for rocky8-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657820' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.77 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 9

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky9-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193657877.pp.QnoCMH Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for rocky9-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657819' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.37 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 9

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux9-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193651678.pp.tUa0Bu Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux9-64-puppet8.example.com in environment production in 0.05 seconds Info: Using environment 'production' Info: Applying configuration version '1697657815' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.36 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux9-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193704100.pp.EjPrdM Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux9-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657826' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.40 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 9

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky9-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193659149.pp.rkqFEl Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for rocky9-64-puppet8.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657822' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.36 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 7

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193719952.pp.Z15g8X Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle7-64-puppet8.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657843' Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install systemd-networkd' returned 1: Error: Nothing to do Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install systemd-networkd' returned 1: Error: Nothing to do �[mNotice: Applied catalog in 0.56 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193727702.pp.W6cV1P Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle7-64-puppet7.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697657850' Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install systemd-networkd' returned 1: Error: Nothing to do Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install systemd-networkd' returned 1: Error: Nothing to do �[mNotice: Applied catalog in 0.67 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 8

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193717098.pp.OnKqQK Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for rocky8-64-puppet8.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657841' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.78 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 8

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193727291.pp.frHTqT Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle8-64-puppet8.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657851' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 2.61 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 9

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193733647.pp.CzBiDe Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for centos9-64-puppet7.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697657856' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.61 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 8

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193724829.pp.3LmoIA Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux8-64-puppet8.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697657849' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.99 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 9

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193723119.pp.zYbYAX Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for centos9-64-puppet8.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657847' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.60 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 8

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193744148.pp.IcJiI4 Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for centos8-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657866' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 2.13 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193756138.pp.LSlazA Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle8-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657878' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 3.08 seconds

Check failure on line 17 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 8

systemd with manage_networkd true configure systemd-networkd works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193954476.pp.KIsbST Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for centos8-64-puppet8.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697657999' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 2.56 seconds
apply_manifest(manifest, catch_failures: true)
# Package systemd-networkd needs to be installed before fact $facts['internal_services'] is set
apply_manifest(manifest, catch_failures: true) if has_package
apply_manifest(manifest, catch_changes: true)
end

describe service('systemd-networkd') do
it { is_expected.to be_running }

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 7

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running

Check failure on line 25 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "systemd-networkd" to be running
it { is_expected.to be_enabled }

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 7

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 9

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled

Check failure on line 26 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 8

systemd with manage_networkd true configure systemd-networkd Service "systemd-networkd" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "systemd-networkd" to be enabled
end

it { expect(package('systemd-networkd')).to be_installed } if has_package

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 8

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 9

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 9

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 9

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 7

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 8

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 8

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 9

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 8

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 9

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 8

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed

Check failure on line 29 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 8

systemd with manage_networkd true configure systemd-networkd is expected to be installed Failure/Error: it { expect(package('systemd-networkd')).to be_installed } if has_package expected Package "systemd-networkd" to be installed
end

context 'configure systemd stopped' do
let(:manifest) do
<<~PUPPET
class { 'systemd':
manage_networkd => true,
networkd_ensure => 'stopped',
}
PUPPET
end

it 'works idempotently with no errors' do

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193659983.pp.AE5XgT Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux8-64-puppet7.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657822' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.78 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 8

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193702081.pp.teSQRi Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for rocky8-64-puppet7.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657824' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.75 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 9

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky9-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193701337.pp.9mp1gP Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for rocky9-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657823' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.37 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 9

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux9-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193656534.pp.Jnxj3L Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux9-64-puppet8.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657820' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.39 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux9-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193707636.pp.KeW0TN Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux9-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657829' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.41 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 9

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky9-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193704215.pp.AXcUjl Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for rocky9-64-puppet8.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657827' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.36 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 7

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193725467.pp.TJcC6Y Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle7-64-puppet8.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657849' Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install systemd-networkd' returned 1: Error: Nothing to do Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install systemd-networkd' returned 1: Error: Nothing to do �[mNotice: Applied catalog in 0.57 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193731861.pp.CXUYMj Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle7-64-puppet7.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697657854' Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install systemd-networkd' returned 1: Error: Nothing to do Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install systemd-networkd' returned 1: Error: Nothing to do �[mNotice: Applied catalog in 0.68 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - Rocky 8

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'rocky8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193722854.pp.2ZHA5A Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for rocky8-64-puppet8.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657846' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.78 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - OracleLinux 8

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193734725.pp.iCmRHf Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle8-64-puppet8.example.com in environment production in 0.06 seconds Info: Using environment 'production' Info: Applying configuration version '1697657858' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 2.61 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 9

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193737911.pp.so7GYL Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for centos9-64-puppet7.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697657860' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.58 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - AlmaLinux 8

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'almalinux8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193732170.pp.pLgNXt Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for almalinux8-64-puppet8.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697657857' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 1.02 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 9

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos9-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193729367.pp.0Ap20S Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for centos9-64-puppet8.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697657853' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 0.62 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 8

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193749566.pp.UsXvoS Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for centos8-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657871' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 2.13 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_193802678.pp.gBP30P Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for oracle8-64-puppet7.example.com in environment production in 0.07 seconds Info: Using environment 'production' Info: Applying configuration version '1697657884' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 2.98 seconds

Check failure on line 42 in spec/acceptance/networkd_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 8 - CentOS 8

systemd with manage_networkd true configure systemd stopped works idempotently with no errors Failure/Error: apply_manifest(manifest, catch_failures: true) Beaker::Host::CommandFailure: Host 'centos8-64-puppet8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_194003344.pp.se65Xm Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for centos8-64-puppet8.example.com in environment production in 0.08 seconds Info: Using environment 'production' Info: Applying configuration version '1697658008' Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd Error: /Stage[main]/Systemd::Install/Package[systemd-networkd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -d 0 -e 1 -y install systemd-networkd' returned 1: Error: Unable to find a match: systemd-networkd �[mNotice: Applied catalog in 2.55 seconds
apply_manifest(manifest, catch_failures: true)
apply_manifest(manifest, catch_changes: true)
end

describe service('systemd-networkd') do
it { is_expected.not_to be_running }
it { is_expected.not_to be_enabled }
end
end
end
7 changes: 7 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
it { is_expected.not_to create_service('systemd-resolved') }
it { is_expected.not_to create_service('systemd-networkd') }
it { is_expected.not_to create_service('systemd-timesyncd') }
it { is_expected.not_to contain_package('systemd-networkd') }
it { is_expected.not_to contain_package('systemd-timesyncd') }
it { is_expected.not_to contain_package('systemd-resolved') }
it { is_expected.not_to contain_class('systemd::coredump') }
Expand All @@ -39,6 +40,12 @@
it { is_expected.to create_service('systemd-networkd').with_enable(true) }
it { is_expected.not_to contain_file('/etc/systemd/network') }

if facts[:os]['family'] == 'RedHat'
it { is_expected.to contain_package('systemd-networkd') }
else
it { is_expected.not_to contain_package('systemd-networkd') }
end

case [facts[:os]['family'], facts[:os]['release']['major']]
when %w[RedHat 7], %w[RedHat 9]
it { is_expected.to contain_package('systemd-resolved') }
Expand Down

0 comments on commit 2818ce7

Please sign in to comment.