]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
Adds when param into backupninja::rsync
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Jun 2018 17:29:40 +0000 (14:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Jun 2018 17:29:40 +0000 (14:29 -0300)
manifests/rsync.pp
templates/rsync.conf.erb

index c760e4daa9b8befa43c22157819a35953e17d106..541698c81712b673ccf8ce9f71b3c40c3f9e0cd9 100644 (file)
@@ -3,6 +3,7 @@
 
 define backupninja::rsync( $order  = 90,
                            $ensure = present,
+                           $when   = false,
                            # [general]
                            $log             = false,
                            $partition       = false,
index e563838bd3ab3b70b4e6bf69fc7987f3b7e48303..a84b9593ba8af960f6ec05f7038bc20770c8a824 100644 (file)
@@ -3,6 +3,8 @@
 # the next time Puppet runs.  Please make configuration changes to this
 # service in Puppet.
 
+<%= 'when = '+ @when if @when != false %>
+
 [general]
 <%- %w{log partition fscheck read_only mountpoint backupdir format days keepdaily keepweekly keepmonthly lockfile nicelevel enable_mv_timestamp_bug, tmp, multiconnection}.each do |v|
     if has_variable?(v) and instance_variable_get("@#{v}").to_s != "false" -%>