aboutsummaryrefslogtreecommitdiff
path: root/manifests/import_key.pp
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2013-10-16 15:17:19 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2013-10-16 15:17:19 -0400
commitdc884e878793fccf3439ce58c68ad104943ad061 (patch)
treef13da9a881f137bde2bce5f7bd941cfe6a0dbed0 /manifests/import_key.pp
parent7218eb738f4d4cbcade57cdf72c7cd6c878cd60e (diff)
downloadpuppet-monkeysphere-dc884e878793fccf3439ce58c68ad104943ad061.tar.gz
puppet-monkeysphere-dc884e878793fccf3439ce58c68ad104943ad061.tar.bz2
style fixes
Diffstat (limited to 'manifests/import_key.pp')
-rw-r--r--manifests/import_key.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/import_key.pp b/manifests/import_key.pp
index ec00fee..ba965ce 100644
--- a/manifests/import_key.pp
+++ b/manifests/import_key.pp
@@ -1,4 +1,8 @@
-define monkeysphere::import_key ( $scheme = 'ssh://', $port = '', $path = '/etc/ssh/ssh_host_rsa_key', $hostname = $fqdn ) {
+define monkeysphere::import_key (
+ $scheme = 'ssh://',
+ $port = '',
+ $path = '/etc/ssh/ssh_host_rsa_key',
+ $hostname = $fqdn ) {
# if we're getting a port number, prefix with a colon so it's valid
$prefixed_port = $port ? {
@@ -10,7 +14,7 @@ define monkeysphere::import_key ( $scheme = 'ssh://', $port = '', $path = '/etc/
exec { "monkeysphere-host import-key $path $key":
alias => "monkeysphere-import-key",
- require => [ Package["monkeysphere"], File["monkeysphere_host_conf"] ],
- unless => "/usr/sbin/monkeysphere-host s | grep $key > /dev/null"
+ require => [ Package["monkeysphere"], File["monkeysphere_host_conf"] ],
+ unless => "/usr/sbin/monkeysphere-host s | grep $key > /dev/null"
}
}