From: Silvio Rhatto Date: Sat, 19 Mar 2016 13:46:03 +0000 (-0300) Subject: Only collect ssh keys if storedconfigs are set X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7839e7b114ab0886d49112f780e763c978c7f251;p=puppet-sshd.git Only collect ssh keys if storedconfigs are set --- diff --git a/manifests/client/base.pp b/manifests/client/base.pp index 4925c2d..4091daf 100644 --- a/manifests/client/base.pp +++ b/manifests/client/base.pp @@ -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 |>> } + } } }