Skip to content

Commit

Permalink
Only install dnf module on EL8
Browse files Browse the repository at this point in the history
We don't intend to use modularity on the initial release, so scope this
to only EL8.
  • Loading branch information
ekohl committed Jan 3, 2024
1 parent 557c952 commit fa74d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
before => Anchor['foreman::repo'],
}

if $facts['os']['family'] == 'RedHat' {
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '8' {
package { 'foreman':
ensure => "el${facts['os']['release']['major']}",
enable_only => true,
Expand Down

0 comments on commit fa74d3b

Please sign in to comment.