CentOS: Use built-in resource to enable crb

Change-Id: I97911c6d287379d1c4ff1ea33626fc1a0099bf25
This commit is contained in:
Takashi Kajinami 2024-06-01 22:17:08 +09:00
parent fb7d55fda0
commit 01002e5e7d

View File

@ -79,10 +79,8 @@ class openstack_integration::repos {
$enable_sig = true $enable_sig = true
$enable_epel = false $enable_epel = false
exec { 'enable-crb': yumrepo { 'crb':
command => 'dnf config-manager --enable crb', enabled => true
path => '/usr/bin/',
unless => 'test 0 -ne $(dnf repolist --enabled crb | wc -l)'
} }
} }
default: { default: {