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
(cherry picked from commit 86a6821dd5)
(cherry picked from commit 42e31b7b43)
This commit is contained in:
Takashi Kajinami
2020-12-09 21:34:30 +09:00
parent 1af58dead8
commit 7cb8bf6472

View File

@@ -73,6 +73,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' {