diff options
author | Antoine Beaupre <anarcat@koumbit.org> | 2008-12-06 19:49:22 -0500 |
---|---|---|
committer | Antoine Beaupre <anarcat@koumbit.org> | 2008-12-06 19:49:22 -0500 |
commit | 5b9c6255b87f0cf029320973053e4f7ad98063f0 (patch) | |
tree | 1e7d5ebdc1af124f53ab393065f5fcc47315b28e /manifests | |
parent | 42150a822c5e0718644a83a39d3c368e9631bd65 (diff) | |
download | puppet-backupninja-5b9c6255b87f0cf029320973053e4f7ad98063f0.tar.gz puppet-backupninja-5b9c6255b87f0cf029320973053e4f7ad98063f0.tar.bz2 |
replace the directory parameter by a home parameter
the directory is now /rdiff-backup to avoid rdiff-backup overwriting the .ssh dir at every run
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/rdiff.pp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index e3964d0..ed1ea55 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -16,7 +16,7 @@ # directories. # define backupninja::rdiff( - $order = 90, $ensure = present, $user = false, $directory = false, $host = false, + $order = 90, $ensure = present, $user = false, $home = false, $host = false, $type = 'local', $exclude = [ "/home/*/.gnupg", "/home/*/.local/share/Trash", "/home/*/.Trash", "/home/*/.thumbnails", "/home/*/.beagle", "/home/*/.aMule", @@ -27,6 +27,7 @@ define backupninja::rdiff( $ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $backuptag = false) { + $directory = "$home/rdiff-backup/" include backupninja::client case $type { 'remote': { @@ -34,7 +35,7 @@ define backupninja::rdiff( backupninja::server::sandbox { - "${user}-${name}": user => $user, host => $host, dir => $directory, + "${user}-${name}": user => $user, host => $host, dir => $home, manage_ssh_dir => $ssh_dir_manage, ssh_dir => $ssh_dir, authorized_keys_file => $authorized_keys_file, installuser => $installuser, backuptag => $backuptag |