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:
parent
53e188a5e6
commit
708ef8e100
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user