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

index 8e5d13e21467a8c037b0c7fe50ad8407d6df6761..025433333c0fb40bd9dfa4798e88f60169fa186e 100644 (file)
@@ -1,4 +1,5 @@
 define backup::rsync(
+    $when           = false,
     $port           = '22',
     $ensure         = present,
     $bandwidthlimit = false,
@@ -6,6 +7,7 @@ define backup::rsync(
     $use_fqdn       = $::fqdn
 ) {
   backupninja::rsync { "rsync-$title.$use_domain":
+    when           => $when,
     # [general]
     ensure         => $ensure,
     home           => "${backup::params::backupdir}/remote/$use_fqdn",