aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-06 14:30:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-06 14:30:09 -0300
commit7a7c62ba1c843fe47c75b252ecda04bd9ba6db7c (patch)
tree3b28b2564dda749a6cb8f4f484934ee9b1e33d0e
parent77e37b29cdb219f297e7b951515fd9eba28b70ea (diff)
downloadpuppet-backup-7a7c62ba1c843fe47c75b252ecda04bd9ba6db7c.tar.gz
puppet-backup-7a7c62ba1c843fe47c75b252ecda04bd9ba6db7c.tar.bz2
Adds when param into backup::rsync
-rw-r--r--manifests/rsync.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/rsync.pp b/manifests/rsync.pp
index 8e5d13e..0254333 100644
--- a/manifests/rsync.pp
+++ b/manifests/rsync.pp
@@ -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",