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], } }