]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
emit a warning instead of info when the ssh server doesn't have an sshrsa key
authorAntoine Beaupre <anarcat@koumbit.org>
Sun, 7 Dec 2008 00:12:17 +0000 (19:12 -0500)
committerAntoine Beaupre <anarcat@koumbit.org>
Sun, 7 Dec 2008 00:12:17 +0000 (19:12 -0500)
also export the key based on ip address, removing all warnings

manifests/init.pp

index 6eb15b38c753128d4cdcc04f19c0373ec88e39b1..9d34f50c034bc082d8ee453c88954f08096264a8 100644 (file)
@@ -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':