]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
Only collect ssh keys if storedconfigs are set
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Mar 2016 13:46:03 +0000 (10:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Mar 2016 13:46:03 +0000 (10:46 -0300)
manifests/client/base.pp

index 4925c2d07ca61178528b71f30b80638e803a7395..4091daf2f6ff0761f61c420a1e1db4177cd027ef 100644 (file)
@@ -8,8 +8,10 @@ class sshd::client::base {
   }
 
   # Now collect all server keys
-  case $sshd::client::shared_ip {
-    no:  { Sshkey <<||>> }
-    yes: { Sshkey <<| tag == fqdn |>> }
+  if $::sshd::use_storedconfigs {
+    case $sshd::client::shared_ip {
+      no:  { Sshkey <<||>> }
+      yes: { Sshkey <<| tag == fqdn |>> }
+    }
   }
 }