diff options
Diffstat (limited to 'manifests/defines/monkeysphere_host.pp')
-rw-r--r-- | manifests/defines/monkeysphere_host.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/manifests/defines/monkeysphere_host.pp b/manifests/defines/monkeysphere_host.pp new file mode 100644 index 0000000..b4b21e0 --- /dev/null +++ b/manifests/defines/monkeysphere_host.pp @@ -0,0 +1,20 @@ +define monkeysphere_host( + $port = hiera('nodo::monkeysphere_host::ssh_port', ''), + $mail_recipient = hiera('mail::root_mail_recipient', 'nobody') +) { + include monkeysphere + + # Ensure the server's ssh key is imported into your monkeysphere key ring + monkeysphere::import_key { "ssh": + port => $port, + } + + # TODO + # Currently we don't have a defined policy regarding whether + # to publish all our node keys to public keyservers, so leave + # automatic publishing disabled for now. + #monkeysphere::publish_server_keys { } + + # Email the server key + monkeysphere::email_server_keys { "$mail_recipient": } +} |