Skip to content

Commit

Permalink
Support EL9 (#23)
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
treydock authored Sep 20, 2023
1 parent a451439 commit e1cc0c2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
delete: true
appveyor.yml:
delete: true
spec/acceptance/nodesets/el9.yml:
delete: true
spec/acceptance/nodesets/debian-10.yml:
delete: true
spec/acceptance/nodesets/debian-11.yml:
Expand Down
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,6 @@ Run unit tests

bundle exec rake spec

If you have Vagrant >= 1.2.0 installed you can run system tests

BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=centos-7-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=centos-7-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=centos-6-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=centos-6-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=ubuntu-1604-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=ubuntu-1604-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=ubuntu-1804-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=ubuntu-1804-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=debian-8-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=debian-8-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_set=debian-9-vagrant bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=debian-8-vagrant bundle exec rake beaker

## Further Information

* https://www.kernel.org/doc/Documentation/kdump/kdump.txt
1 change: 1 addition & 0 deletions data/os/major/RedHat/9.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kdump::crashkernel: 1G-4G:192M,4G-64G:256M,64G:512M
13 changes: 11 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
Expand All @@ -34,7 +35,15 @@
{
"operatingsystem": "Rocky",
"operatingsystemrelease": [
"8"
"8",
"9"
]
},
{
"operatingsystem": "AlmaLinux",
"operatingsystemrelease": [
"8",
"9"
]
},
{
Expand Down
10 changes: 9 additions & 1 deletion spec/classes/kdump_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
facts.merge(crashkernel: 'auto')
end

let(:crashkernel) do
if facts[:os]['family'] == 'RedHat' && facts[:os]['release']['major'].to_s == '9'
'1G-4G:192M,4G-64G:256M,64G:512M'
else
'auto'
end
end

let(:package_name) do
case facts[:os]['family']
when 'Debian'
Expand Down Expand Up @@ -64,7 +72,7 @@

it do
is_expected.to contain_kernel_parameter('crashkernel').with(ensure: 'present',
value: 'auto',
value: crashkernel,
target: nil,
bootmode: 'all',
provider: 'grub2')
Expand Down

0 comments on commit e1cc0c2

Please sign in to comment.