Skip to content

Commit

Permalink
Merge pull request #2196 from puppetlabs/pdksync_IAC-1751/main/add_ro…
Browse files Browse the repository at this point in the history
…cky_8_support

pdksync - (IAC-1751) - Add Support for Rocky 8
  • Loading branch information
carabasdaniel authored Oct 4, 2021
2 parents 4d3702e + d3df050 commit 360607a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@
"18.04",
"20.04"
]
},
{
"operatingsystem": "Rocky",
"operatingsystemrelease": [
"8"
]
}
],
"requirements": [
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/mod/fastcgi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
it { is_expected.to contain_apache__mod('fastcgi') }
it { is_expected.to contain_package('libapache2-mod-fastcgi') }
it { is_expected.to contain_file('fastcgi.conf') }
when 'RedHat', 'CentOS', 'OracleLinux', 'Scientific'
when 'RedHat', 'CentOS', 'OracleLinux', 'Scientific', 'Rocky'
if facts[:os]['release']['major'].to_i < 7
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_class('apache::params') }
Expand Down
3 changes: 2 additions & 1 deletion spec/classes/mod/php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@
next if (facts[:os]['release']['major'].to_i > 15 && facts[:os]['name'] == 'Ubuntu') ||
(facts[:os]['release']['major'].to_i >= 15 && facts[:os]['name'] == 'SLES') ||
(facts[:os]['release']['major'].to_i >= 9 && facts[:os]['name'] == 'Debian') ||
(facts[:os]['release']['major'].to_i >= 8 && (facts[:os]['name'] == 'RedHat' || facts[:os]['name'] == 'CentOS'))
(facts[:os]['release']['major'].to_i >= 8 && (facts[:os]['name'] == 'RedHat' || facts[:os]['name'] == 'CentOS' ||
facts[:os]['name'] == 'Rocky'))

describe 'OS independent tests' do
context 'with content param' do
Expand Down

0 comments on commit 360607a

Please sign in to comment.