From 01002e5e7dccc2bd7ca322241bc98b18dc8cf3b8 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 1 Jun 2024 22:17:08 +0900 Subject: [PATCH] CentOS: Use built-in resource to enable crb Change-Id: I97911c6d287379d1c4ff1ea33626fc1a0099bf25 --- manifests/repos.pp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/manifests/repos.pp b/manifests/repos.pp index 7d3881069..583cf9a8f 100644 --- a/manifests/repos.pp +++ b/manifests/repos.pp @@ -79,10 +79,8 @@ class openstack_integration::repos { $enable_sig = true $enable_epel = false - exec { 'enable-crb': - command => 'dnf config-manager --enable crb', - path => '/usr/bin/', - unless => 'test 0 -ne $(dnf repolist --enabled crb | wc -l)' + yumrepo { 'crb': + enabled => true } } default: {