From: Antoine Beaupre Date: Sun, 7 Dec 2008 00:12:17 +0000 (-0500) Subject: emit a warning instead of info when the ssh server doesn't have an sshrsa key X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=461bc0c2f0c7cb11b08c3fa22175bfea2fd4b8f8;p=puppet-sshd.git 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 --- 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':