repos/redhat: install yum-plugin-priorities

yum-plugin-priorities package is needed when running RDO trunk
packaging, repositories have priorities and we need to address them.

Change-Id: I3ac207f744847b5742fc331d2c16d1dad475f9ea
This commit is contained in:
Emilien Macchi 2016-01-27 10:54:46 -05:00
parent fb85b43b29
commit 7f9a1cd09a
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -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(