diff --git a/manifests/repos.pp b/manifests/repos.pp index 4f83f6a27..9a47f4f35 100644 --- a/manifests/repos.pp +++ b/manifests/repos.pp @@ -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' {