aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2011-03-08 10:10:51 -0500
committerJamie McClelland <jm@mayfirst.org>2011-03-08 10:10:51 -0500
commit1c4c275c34c9c9a240918852d1668d3d6d5c1967 (patch)
treebb228739f752dbb342333ea095f18c70e97ea907
parent6e2a4c72b6c9816be5d196e613a49ed303609e74 (diff)
downloadpuppet-monkeysphere-1c4c275c34c9c9a240918852d1668d3d6d5c1967.tar.gz
puppet-monkeysphere-1c4c275c34c9c9a240918852d1668d3d6d5c1967.tar.bz2
admins may not want to publish keys for some hosts
-rw-r--r--manifests/init.pp14
1 files changed, 11 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f49ab92..d9dc98e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -36,9 +36,17 @@ class monkeysphere::import_key inherits monkeysphere {
# Server host key publication
class monkeysphere::publish_key inherits monkeysphere {
- exec { "/usr/sbin/monkeysphere-host publish-key":
- environment => "MONKEYSPHERE_PROMPT=false",
- user => "root",
+ $no_publish = $monkeysphere_no_publish ? {
+ '' => '',
+ default => $monkeysphere_no_publish
+ }
+ if $fqdn in $no_publish {
+ info("Not publishing $fqdn monkeysphere key")
+ } else {
+ exec { "/usr/sbin/monkeysphere-host publish-key":
+ environment => "MONKEYSPHERE_PROMPT=false",
+ user => "root",
+ }
}
}