diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 14 |
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", + } } } |