From 1c4c275c34c9c9a240918852d1668d3d6d5c1967 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Tue, 8 Mar 2011 10:10:51 -0500 Subject: admins may not want to publish keys for some hosts --- manifests/init.pp | 14 +++++++++++--- 1 file 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", + } } } -- cgit v1.2.3