diff --git a/manifests/repo/redhat/redhat.pp b/manifests/repo/redhat/redhat.pp index 99c8fbe..94c8a08 100644 --- a/manifests/repo/redhat/redhat.pp +++ b/manifests/repo/redhat/redhat.pp @@ -76,6 +76,10 @@ class openstack_extras::repo::redhat::redhat( anchor { 'openstack_extras_redhat': } + package { 'yum-plugin-priorities': + ensure => 'present', + } + if $manage_rdo { $release_cap = capitalize($release) diff --git a/spec/classes/openstack_extras_repo_redhat_redhat_spec.rb b/spec/classes/openstack_extras_repo_redhat_redhat_spec.rb index e3116be..46a8fb8 100644 --- a/spec/classes/openstack_extras_repo_redhat_redhat_spec.rb +++ b/spec/classes/openstack_extras_repo_redhat_redhat_spec.rb @@ -61,6 +61,10 @@ describe 'openstack_extras::repo::redhat::redhat' do :notify => "Exec[yum_refresh]" )} + it { is_expected.to contain_package('yum-plugin-priorities').with( + :ensure => 'present', + )} + # 'metalink' property is supported from Puppet 3.5 if Puppet.version.to_f >= 3.5 it { is_expected.to contain_yumrepo('epel').with(