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 {
|
if lookup('gnupg.privkey', undef, undef, undef) != undef {
|
||||||
sunet::snippets::secret_file { "/opt/intelmq/.gnupg/${privkey}.asc":
|
sunet::snippets::secret_file { "/opt/intelmq/.gnupg/${privkey}.asc":
|
||||||
hiera_key => 'gnupg.privkey'
|
hiera_key => 'gnupg.privkey'
|
||||||
}
|
owner => 'intelmq',
|
||||||
file { "/opt/intelmq/.gnupg/${privkey}.asc":
|
|
||||||
ensure => present,
|
|
||||||
replace => false,
|
|
||||||
onwer => 'intelmq',
|
|
||||||
group => 'intelmq',
|
group => 'intelmq',
|
||||||
mode => '0500',
|
|
||||||
}
|
}
|
||||||
exec { 'Import private gpg key':
|
exec { 'Import private gpg key':
|
||||||
command => "sudo -u intelmq /usr/bin/gpg -import /opt/intelmq/.gnupg/${privkey}.asc",
|
command => "sudo -u intelmq /usr/bin/gpg -import /opt/intelmq/.gnupg/${privkey}.asc",
|
||||||
|
|
Loading…
Add table
Reference in a new issue