Skip to content

Commit

Permalink
Merge pull request #468 from jcpunk/EL10
Browse files Browse the repository at this point in the history
Rework Red Hat resolved package list to be more future proof
  • Loading branch information
ekohl authored Jun 13, 2024
2 parents 09c86ae + 5178049 commit 38bd9da
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion data/RedHat-family-7.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
systemd::resolved_package: 'systemd-resolved'
systemd::nspawn_package: ~

systemd::accounting:
Expand Down
2 changes: 2 additions & 0 deletions data/RedHat-family-8.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
systemd::resolved_package: ~

systemd::accounting:
DefaultCPUAccounting: 'yes'
DefaultBlockIOAccounting: 'yes'
Expand Down
1 change: 0 additions & 1 deletion data/RedHat-family-9.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
systemd::resolved_package: 'systemd-resolved'
systemd::oomd_package: 'systemd-oomd'

systemd::accounting:
Expand Down
1 change: 1 addition & 0 deletions data/RedHat-family.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
systemd::networkd_package: systemd-networkd
systemd::nspawn_package: 'systemd-container'
systemd::resolved_package: 'systemd-resolved'
3 changes: 1 addition & 2 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
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], %w[Debian 12]
if (facts[:os]['family'] == 'RedHat' && facts[:os]['release']['major'] != '8') || (facts[:os]['name'] == 'Debian' && facts[:os]['release']['major'] == '12')
it { is_expected.to contain_package('systemd-resolved') }
else
it { is_expected.not_to contain_package('systemd-resolved') }
Expand Down

0 comments on commit 38bd9da

Please sign in to comment.