blob: f76c4082d2da2dd0f8c9eb6ec94ecab9fd491d6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
define monkeysphere::publish_user_key ( ){
$user = $title
$keyserver_arg = $monkeysphere_keyserver ? {
'' => '',
default => "--keyserver $monkeysphere_keyserver"
}
exec { "monkeysphere-gpg-send-key-$user":
command => "gpg $keyserver_arg --send-key $(gpg --list-secret-key --with-colons | grep ^sec | cut -d: -f5)",
require => [ Package["monkeysphere"], Exec["monkeysphere-gen-key-$user" ] ],
user => $user,
}
}
|