aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-19 10:46:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-19 10:46:03 -0300
commit7839e7b114ab0886d49112f780e763c978c7f251 (patch)
tree645b45cbcaa595f856ebca87e71b915ecbeb505a
parentff79bc6295e9f089285ccc26c04cc72893a8384f (diff)
downloadpuppet-sshd-7839e7b114ab0886d49112f780e763c978c7f251.tar.gz
puppet-sshd-7839e7b114ab0886d49112f780e763c978c7f251.tar.bz2
Only collect ssh keys if storedconfigs are set
-rw-r--r--manifests/client/base.pp8
1 files 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 |>> }
+ }
}
}