diff --git a/metadata.json b/metadata.json index 6a2e19f..3c9d85d 100644 --- a/metadata.json +++ b/metadata.json @@ -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" ] }, { diff --git a/spec/acceptance/sysctl_spec.rb b/spec/acceptance/sysctl_spec.rb index d34dd90..bf78367 100644 --- a/spec/acceptance/sysctl_spec.rb +++ b/spec/acceptance/sysctl_spec.rb @@ -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'