From 7839e7b114ab0886d49112f780e763c978c7f251 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 19 Mar 2016 10:46:03 -0300 Subject: Only collect ssh keys if storedconfigs are set --- manifests/client/base.pp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 |>> } + } } } -- cgit v1.2.3