]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
Adds use_storedconfigs param at backupninja::server
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Mar 2016 14:42:34 +0000 (11:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Mar 2016 14:42:34 +0000 (11:42 -0300)
manifests/server.pp

index 49e42a0f33963551a63130411c7bd24fa4054e66..6f7a30eaf17d764b80320e3cef14ed82b9fe6808 100644 (file)
@@ -12,6 +12,7 @@ class backupninja::server (
   $nagios_server = undef,
   $nagios_warn_level = 129600,
   $nagios_crit_level = 216000,
+  $use_storedconfigs = true,
 ) {
 
   group { "backupninjas":
@@ -50,7 +51,9 @@ class backupninja::server (
   }
 
   # collect all resources from hosted backups
-  Backupninja_server_realize <<| tag == $::fqdn |>>
+  if $use_storedconfigs {
+    Backupninja_server_realize <<| tag == $::fqdn |>>
+  }
 
   # this define allows nodes to declare a remote backup sandbox, that have to
   # get created on the server