forked from SUNET/soc-ops
GPG fixes
This commit is contained in:
parent
ac668fd1d1
commit
8a1bce76b9
1 changed files with 2 additions and 7 deletions
|
@ -310,13 +310,8 @@ class soc::intelmq(
|
|||
if lookup('gnupg.privkey', undef, undef, undef) != undef {
|
||||
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',
|
||||
owner => 'intelmq',
|
||||
group => 'intelmq',
|
||||
}
|
||||
exec { 'Import private gpg key':
|
||||
command => "sudo -u intelmq /usr/bin/gpg -import /opt/intelmq/.gnupg/${privkey}.asc",
|
||||
|
|
Loading…
Add table
Reference in a new issue