From 9b0df6b2d1b1708c61d7878861844364d4fee61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bj=C3=B6rklund?= Date: Thu, 21 Nov 2024 11:33:26 +0100 Subject: [PATCH] GPG privkey fixes. --- global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp b/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp index c875ac1..561c4f2 100644 --- a/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp +++ b/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp @@ -316,6 +316,7 @@ class soc::intelmq( exec { 'Import private gpg key': command => "sudo -u intelmq /usr/bin/gpg --import /opt/intelmq/.gnupg/${privkey}.asc", unless => "sudo -u intelmq /usr/bin/gpg -K 2>/dev/null | grep ${privkey}", + require => File["/opt/intelmq/.gnupg/${privkey}.asc"]. } }