diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/client/base.pp | 5 | ||||
-rw-r--r-- | manifests/client/storedconfigs.pp | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp index 4091daf..47e2c8a 100644 --- a/manifests/client/base.pp +++ b/manifests/client/base.pp @@ -9,9 +9,6 @@ class sshd::client::base { # Now collect all server keys if $::sshd::use_storedconfigs { - case $sshd::client::shared_ip { - no: { Sshkey <<||>> } - yes: { Sshkey <<| tag == fqdn |>> } - } + 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 |>> } + } +} |