aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp4
-rw-r--r--templates/monkeysphere.conf.erb2
2 files changed, 6 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 30035be..b360098 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -24,6 +24,10 @@ class monkeysphere(
$ssh_port = '',
$publish_key = false,
$ensure_version = 'installed',
+ # if not false, will override the path for MONKEYSPHERE_RAW_AUTHORIZED_KEYS
+ # use 'none' to disable appending the authorized_keys file
+ # see monkeysphere-authentication for more information
+ $raw_authorized_keys = false,
$keyserver = 'pool.sks-keyservers.net'
) {
# The needed packages
diff --git a/templates/monkeysphere.conf.erb b/templates/monkeysphere.conf.erb
index 53e4b9e..f7988b8 100644
--- a/templates/monkeysphere.conf.erb
+++ b/templates/monkeysphere.conf.erb
@@ -37,3 +37,5 @@
# The path to the SSH authorized_keys file.
#AUTHORIZED_KEYS=~/.ssh/authorized_keys
+
+<% if @raw_authorized_keys %>RAW_AUTHORIZED_KEYS=<%= @raw_authorized_keys %><% end %>