From 67c48ada4ee7bca27e74098627b84946f6b48965 Mon Sep 17 00:00:00 2001 From: Trey Dockendorf Date: Sun, 8 Dec 2024 10:24:53 -0500 Subject: [PATCH] Support EL9 --- metadata.json | 15 ++++++++++----- spec/acceptance/sysctl_spec.rb | 6 ++++++ 2 files changed, 16 insertions(+), 5 deletions(-) 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'