Commit 740a6c73 authored by mh's avatar mh

schleuder-cli can now notify subscriptions about the key, let's do that to the initial admin

parent 341f7294
......@@ -3,6 +3,7 @@ define schleuder::list(
$ensure = present,
$admin = undef,
$admin_publickey = undef,
$send_list_key = true,
){
if ($ensure == 'present') and !$admin {
fail("Must pass adminaddress to Schleuder::List[${name}]")
......@@ -43,5 +44,13 @@ define schleuder::list(
admin_publickey => $real_admin_publickey,
admin => $admin,
}
if $send_list_key {
exec{"schleuder-cli lists send-list-key-to-subscriptions ${name}":
environment => ['HOME=/root'],
tag => 'schleuder-cli-send-list-key-to-subscriptions',
refreshonly => true,
subscribe => Schleuder_list[$name],
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment