aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/rdiff.pp13
1 files changed, 7 insertions, 6 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index 587c02d..36ba4e5 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -37,12 +37,6 @@ define backupninja::rdiff(
default => $backuptag
}
- $real_home = $home ? {
- false => "/home/${user}-${name}",
- default => $home,
- }
- $directory = "$real_home/rdiff-backup/"
-
backupninja::server::sandbox
{
"${user}-${name}": user => $user, host => $fqdn, dir => $real_home,
@@ -61,6 +55,13 @@ define backupninja::rdiff(
}
}
}
+
+ $real_home = $home ? {
+ false => "/home/${user}-${name}",
+ default => $home,
+ }
+ $directory = "$real_home/rdiff-backup/"
+
file { "${backupninja::client::defaults::configdir}/${order}_${name}.rdiff":
ensure => $ensure,
content => template('backupninja/rdiff.conf.erb'),