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"]. } }