RDO: ensure rdo-release is not installed

Change-Id: I982853994d71b36266f50adf4f9da5395fe60dd2
This commit is contained in:
Emilien Macchi 2015-11-02 11:59:18 -05:00
parent 2d08ba975b
commit 19176ea2fb
1 changed files with 10 additions and 0 deletions

View File

@ -77,6 +77,16 @@ class openstack_extras::repo::redhat::redhat(
anchor { 'openstack_extras_redhat': }
if $manage_rdo {
exec { 'drop rdo-release package':
command => '/usr/bin/yum -y remove rdo-release',
logoutput => 'on_failure',
tries => 3,
try_sleep => 1,
refreshonly => true,
subscribe => File[$rdokey_hash],
}
$release_cap = capitalize($release)
# In kilo the URL pattern changed
if $release < 'kilo' { # Lexicographically before 'k' release