Change chardet installation to a exec

The previous code tried to install the python2-chardet
with the source name of python-chardet which for some
reason just straight up skipped doing it.

If you changed the resource name of the package resource
to python2-chardet it failed as well since the python2-chardet
package obsoletes python-chardet, puppet doesn't handle packages
being obsoleted.

Change-Id: Ia5a89d7d716fb08ac75002693dc360bd373903db
This commit is contained in:
Tobias Urdin 2019-02-25 23:58:18 +01:00
parent 53e188a5e6
commit 708ef8e100
1 changed files with 5 additions and 4 deletions

View File

@ -112,10 +112,11 @@ class openstack_integration::repos {
# https://bugzilla.redhat.com/show_bug.cgi?id=1620221
# This is added here so we have the latest of this package in both integration and
# beaker testing.
package { 'python-chardet':
ensure => 'installed',
provider => 'rpm',
source => 'http://mirror.centos.org/centos/7/cloud/x86_64/openstack-rocky/python2-chardet-3.0.4-7.el7.noarch.rpm',
exec { 'install python2-chardet':
command => 'yum install -y http://mirror.centos.org/centos/7/cloud/x86_64/openstack-rocky/python2-chardet-3.0.4-7.el7.noarch.rpm',
path => '/bin',
user => 'root',
unless => 'rpm -qa | grep -w python2-chardet-3.0.4-7',
}
# NOTE(tobias-urdin): Install libibverbs to fix an issue where OVS outputs errors