Enable PowerTools repo on CentOS8

PowerTools repo is no longer included in delorean-deps.repo and we
should explicitly enable the repository to pull some required package
like SDL2.
This patch adds step to enable the repo into openstack-integration as
a short-term workaround, but this logic will be migrated to
puppet-openstack_extras later.

Related-Bug: #1907323
Change-Id: Ia21daac1e91e214dc28400779143774e6e69fc62
This commit is contained in:
Takashi Kajinami 2020-12-09 21:34:30 +09:00
parent 7be46c1a52
commit 86a6821dd5

View File

@ -91,6 +91,16 @@ class openstack_integration::repos {
$enable_sig = false
$enable_epel = true
}
# PowerTools is required on CentOS8 since Ussuri.
if $::operatingsystem == 'CentOS' {
exec { 'enable-powertools':
command => 'dnf config-manager --enable powertools',
path => '/usr/bin/',
unless => 'test 0 -ne $(dnf repolist --enabled powertools | wc -l)'
}
}
# Remove Fedora Base repos as stable-base repo is configured which includes
# all required packages
if $::operatingsystem == 'Fedora' {