aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2008-12-06 19:12:17 -0500
committerAntoine Beaupre <anarcat@koumbit.org>2008-12-06 19:12:17 -0500
commit461bc0c2f0c7cb11b08c3fa22175bfea2fd4b8f8 (patch)
tree1814b514bb3c27a8b8604da944bde35d36e6cfcc /manifests
parent992e6e0f07ea70c2e39df30035f414f33babf6c0 (diff)
downloadpuppet-sshd-461bc0c2f0c7cb11b08c3fa22175bfea2fd4b8f8.tar.gz
puppet-sshd-461bc0c2f0c7cb11b08c3fa22175bfea2fd4b8f8.tar.bz2
emit a warning instead of info when the ssh server doesn't have an sshrsa key
also export the key based on ip address, removing all warnings
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6eb15b3..9d34f50 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -212,13 +212,18 @@ class sshd::base {
}
# Now add the key, if we've got one
case $sshrsakey {
- '': { info("no sshrsakey on $fqdn") }
+ '': { warning("no sshrsakey on $fqdn") }
default: {
@@sshkey{"$hostname.$domain":
type => ssh-rsa,
key => $sshrsakey,
ensure => present,
}
+ @@sshkey{"$ipaddress":
+ type => ssh-rsa,
+ key => $sshrsakey,
+ ensure => present,
+ }
}
}
service{'sshd':