diff --git a/manifests/repo.pp b/manifests/repo.pp index bebecdc..bbbc902 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -25,12 +25,14 @@ Anchor <| title == 'foreman::repo' |> -> Yumrepo['katello'] - package { 'katello-dnf-module': - ensure => $dist, - name => 'katello', - enable_only => true, - provider => 'dnfmodule', - require => Yumrepo['katello'], - before => Anchor['katello::repo'], + if $facts['os']['release']['major'] == '8' { + package { 'katello-dnf-module': + ensure => $dist, + name => 'katello', + enable_only => true, + provider => 'dnfmodule', + require => Yumrepo['katello'], + before => Anchor['katello::repo'], + } } }