Skip to content

Commit

Permalink
Support EL9
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Feb 16, 2024
1 parent aa28c5a commit b33a618
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"8"
"8",
"9"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"8"
"8",
"9"
]
},
{
Expand Down
14 changes: 8 additions & 6 deletions spec/acceptance/foreman_cli_plugins_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ class { 'foreman::cli':
gpgcheck => 0,
}
package { 'katello':
ensure => "el${facts['os']['release']['major']}",
enable_only => true,
provider => 'dnfmodule',
require => Yumrepo['katello'],
if $facts['os']['release']['major'] == '8' {
package { 'katello':
ensure => "el${facts['os']['release']['major']}",
enable_only => true,
provider => 'dnfmodule',
require => Yumrepo['katello'],
}
Package['katello'] -> Class['foreman::cli::katello']
}
Package['katello'] -> Class['foreman::cli::katello']
class { 'foreman::cli':
foreman_url => 'https://foreman.example.com',
Expand Down

0 comments on commit b33a618

Please sign in to comment.