diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-12 15:12:16 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-12 15:12:16 -0300 |
commit | fc98b0dbd9d9b0982338a4f4d017594ec48511a1 (patch) | |
tree | 943da0f52936e723d87fc5f3249d470e90ced2a1 | |
parent | 7d044de8029dd5f5d1f3778b1a71b3e31ebaede5 (diff) | |
download | puppet-backupninja-fc98b0dbd9d9b0982338a4f4d017594ec48511a1.tar.gz puppet-backupninja-fc98b0dbd9d9b0982338a4f4d017594ec48511a1.tar.bz2 |
Fix backupdir variable at backupninja::rsync
-rw-r--r-- | manifests/rsync.pp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/manifests/rsync.pp b/manifests/rsync.pp index fc59950..a643415 100644 --- a/manifests/rsync.pp +++ b/manifests/rsync.pp @@ -80,15 +80,14 @@ define backupninja::rsync( $order = 90, ensure_resource('package', 'rsync', {'ensure' => $backupninja::ensure_rsync_version}) # Right now just local origin with remote destination is supported. - $from = 'local' - $dest = 'remote' + $from = 'local' + $dest = 'remote' + $backupdir = "${home}/${subfolder}/" case $dest { 'remote': { case $host { false: { err("need to define a host for remote backups!") } } - $directory = "${home}/${subfolder}/" - backupninja::server::sandbox { "${user}-${name}": user => $user, host => $host, |