diff options
author | Antoine Beaupre <anarcat@koumbit.org> | 2009-10-20 20:05:31 -0400 |
---|---|---|
committer | Antoine Beaupre <anarcat@koumbit.org> | 2009-10-20 20:05:31 -0400 |
commit | 222ebf64d1f0f54120c510ce408a946bb08ce791 (patch) | |
tree | 83225fe97c36b7366dc03c50080486acf11dde9d /manifests | |
parent | aeae9f516faae6c1f0b68ce849eb6036716bcb01 (diff) | |
download | puppet-backupninja-222ebf64d1f0f54120c510ce408a946bb08ce791.tar.gz puppet-backupninja-222ebf64d1f0f54120c510ce408a946bb08ce791.tar.bz2 |
move the tag where it belongs (in remote)
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/rdiff.pp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index bcaee51..c9363be 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -27,17 +27,16 @@ define backupninja::rdiff( $ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $key = false, $backuptag = false, $home = false, $backupkeytype = "rsa", $backupkeystore = false, $extras = false) { - $real_backuptag = $backuptag ? { - false => "backupninja-$host", - default => $backuptag - } - include backupninja::client::defaults case $type { 'remote': { case $host { false: { err("need to define a host for remote backups!") } } - + $real_backuptag = $backuptag ? { + false => "backupninja-$host", + default => $backuptag + } + $real_home = $home ? { false => "/home/${user}-${name}", default => $home, |