From f5e8fadecbffb50633d4a5bc2a18187e64678b6c Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sat, 25 Oct 2025 19:16:22 +0200 Subject: [PATCH] add local rpm - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/284 --- manifests/r10k/install.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/r10k/install.pp b/manifests/r10k/install.pp index d3e430c..30625ff 100644 --- a/manifests/r10k/install.pp +++ b/manifests/r10k/install.pp @@ -60,7 +60,8 @@ class puppet_cd::r10k::install ( } exec { 'install rpm': - command => "yum install ${pt_r10k_webhook_pkg}", + command => "yum install -y ${pt_r10k_webhook_pkg}", + unless => "rpm -qa | grep ${pt_r10k_webhook_pkg}", require => File[$pt_r10k_webhook_pkg], } }