diff options
author | Antoine Beaupre <anarcat@koumbit.org> | 2009-10-20 19:28:26 -0400 |
---|---|---|
committer | Antoine Beaupre <anarcat@koumbit.org> | 2009-10-20 19:28:26 -0400 |
commit | 409c13a31f57ea6fff1bbfb669741c2128111d2e (patch) | |
tree | c88dcb63432cf50064fab64b542fc8582de866ed /manifests | |
parent | 343f27fa91865c0c20f633f36048f8d61179fb02 (diff) | |
download | puppet-backupninja-409c13a31f57ea6fff1bbfb669741c2128111d2e.tar.gz puppet-backupninja-409c13a31f57ea6fff1bbfb669741c2128111d2e.tar.bz2 |
fix directory
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/rdiff.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index 1d171b2..bcaee51 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -32,7 +32,6 @@ define backupninja::rdiff( default => $backuptag } - $directory = "$home/rdiff-backup/" include backupninja::client::defaults case $type { @@ -40,13 +39,14 @@ define backupninja::rdiff( case $host { false: { err("need to define a host for remote backups!") } } $real_home = $home ? { - false => $directory, + false => "/home/${user}-${name}", default => $home, } + $directory = "$real_home/rdiff-backup/" backupninja::server::sandbox { - "${user}-${name}": user => $user, host => $fqdn, dir => $home, + "${user}-${name}": user => $user, host => $fqdn, dir => $real_home, manage_ssh_dir => $ssh_dir_manage, ssh_dir => $ssh_dir, key => $key, authorized_keys_file => $authorized_keys_file, installuser => $installuser, backuptag => $real_backuptag, keytype => $backupkeytype, backupkeys => $backupkeystore, |