aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-22 17:33:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-22 17:33:03 -0300
commit1f9e0178ae255aab1001032ecbad7a68403f6da9 (patch)
treea95b675fdda44e3022d703dcc6c0b21326f0e00a
parentdc91f7ac1795145c668ca126918582569e95d815 (diff)
downloadpuppet-sshd-1f9e0178ae255aab1001032ecbad7a68403f6da9.tar.gz
puppet-sshd-1f9e0178ae255aab1001032ecbad7a68403f6da9.tar.bz2
Move storedconfig code to separate files, trying to avoid warnings on masterless setupproduction
-rw-r--r--manifests/client/base.pp5
-rw-r--r--manifests/client/storedconfigs.pp6
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 |>> }
+ }
+}