Skip to content

Commit

Permalink
Support EL9
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Dec 8, 2024
1 parent c5fbd53 commit 67c48ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 10 additions & 5 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,38 @@
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
},
{
"operatingsystem": "Rocky",
"operatingsystemrelease": [
"8"
"8",
"9"
]
},
{
"operatingsystem": "AlmaLinux",
"operatingsystemrelease": [
"8"
"8",
"9"
]
},
{
Expand Down
6 changes: 6 additions & 0 deletions spec/acceptance/sysctl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@
context 'when using a target file' do
let(:manifest) do
<<-EOM
if $facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'], '9') >= 0 {
package { 'systemd-udev':
ensure => 'installed',
}
Package['systemd-udev'] -> Sysctl <| |>
}
sysctl { 'fs.nr_open':
value => '100001',
target => '/etc/sysctl.d/20-fs.conf'
Expand Down

0 comments on commit 67c48ad

Please sign in to comment.