From: Silvio Rhatto Date: Sat, 12 Sep 2015 18:12:16 +0000 (-0300) Subject: Fix backupdir variable at backupninja::rsync X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=fc98b0dbd9d9b0982338a4f4d017594ec48511a1;p=puppet-backupninja.git Fix backupdir variable at backupninja::rsync --- 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,