aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2009-10-20 20:05:31 -0400
committerAntoine Beaupre <anarcat@koumbit.org>2009-10-20 20:05:31 -0400
commit222ebf64d1f0f54120c510ce408a946bb08ce791 (patch)
tree83225fe97c36b7366dc03c50080486acf11dde9d
parentaeae9f516faae6c1f0b68ce849eb6036716bcb01 (diff)
downloadpuppet-backupninja-222ebf64d1f0f54120c510ce408a946bb08ce791.tar.gz
puppet-backupninja-222ebf64d1f0f54120c510ce408a946bb08ce791.tar.bz2
move the tag where it belongs (in remote)
-rw-r--r--manifests/rdiff.pp11
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,