aboutsummaryrefslogtreecommitdiff
path: root/manifests/client
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/client')
-rw-r--r--manifests/client/base.pp5
-rw-r--r--manifests/client/storedconfigs.pp6
2 files changed, 8 insertions, 3 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp
index 4925c2d..47e2c8a 100644
--- a/manifests/client/base.pp
+++ b/manifests/client/base.pp
@@ -8,8 +8,7 @@ class sshd::client::base {
}
# Now collect all server keys
- case $sshd::client::shared_ip {
- no: { Sshkey <<||>> }
- yes: { Sshkey <<| tag == fqdn |>> }
+ if $::sshd::use_storedconfigs {
+ include sshd::client::storedconfigs
}
}
diff --git a/manifests/client/storedconfigs.pp b/manifests/client/storedconfigs.pp
new file mode 100644
index 0000000..59dcebc
--- /dev/null
+++ b/manifests/client/storedconfigs.pp
@@ -0,0 +1,6 @@
+class sshd::client::storedconfigs {
+ case $sshd::client::shared_ip {
+ no: { Sshkey <<||>> }
+ yes: { Sshkey <<| tag == fqdn |>> }
+ }
+}