GPG fixes
This commit is contained in:
parent
5a62a54e3c
commit
ac668fd1d1
1 changed files with 7 additions and 0 deletions
|
@ -311,6 +311,13 @@ class soc::intelmq(
|
|||
sunet::snippets::secret_file { "/opt/intelmq/.gnupg/${privkey}.asc":
|
||||
hiera_key => 'gnupg.privkey'
|
||||
}
|
||||
file { "/opt/intelmq/.gnupg/${privkey}.asc":
|
||||
ensure => present,
|
||||
replace => false,
|
||||
onwer => 'intelmq',
|
||||
group => 'intelmq',
|
||||
mode => '0500',
|
||||
}
|
||||
exec { 'Import private gpg key':
|
||||
command => "sudo -u intelmq /usr/bin/gpg -import /opt/intelmq/.gnupg/${privkey}.asc",
|
||||
unless => "gpg -K ${privkey} 2>&1 > /dev/null",
|
||||
|
|
Loading…
Add table
Reference in a new issue