From 81abf9497f541cd9686bfe1c0021ed2a7561de56 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 9 Dec 2020 21:34:30 +0900 Subject: [PATCH] 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 86a6821dd5f0f7ca1aea042e2fc9ba43ec7056c7) --- manifests/repos.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifests/repos.pp b/manifests/repos.pp index 246c7c566..424f68875 100644 --- a/manifests/repos.pp +++ b/manifests/repos.pp @@ -82,6 +82,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' {