]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
Move storedconfig code to separate files, trying to avoid warnings on masterless... production
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 22 Mar 2016 20:33:03 +0000 (17:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 22 Mar 2016 20:33:03 +0000 (17:33 -0300)
manifests/client/base.pp
manifests/client/storedconfigs.pp [new file with mode: 0644]

index 4091daf2f6ff0761f61c420a1e1db4177cd027ef..47e2c8aeb07a4bcd92c75b3130fb34bf69f5aad6 100644 (file)
@@ -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 (file)
index 0000000..59dcebc
--- /dev/null
@@ -0,0 +1,6 @@
+class sshd::client::storedconfigs {
+  case $sshd::client::shared_ip {
+    no:  { Sshkey <<||>> }
+    yes: { Sshkey <<| tag == fqdn |>> }
+  }
+}