From: Silvio Rhatto Date: Tue, 22 Mar 2016 20:33:03 +0000 (-0300) Subject: Move storedconfig code to separate files, trying to avoid warnings on masterless... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1f9e0178ae255aab1001032ecbad7a68403f6da9;p=puppet-sshd.git Move storedconfig code to separate files, trying to avoid warnings on masterless setup --- 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 |>> } + } +}