aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-03-07 13:30:16 +0100
committervarac <varacanero@zeromail.org>2013-03-07 13:30:16 +0100
commitea5cf965fc63ba39507de5e68f39563b87b7f0bc (patch)
tree8191e3b9d6458b59caade582a6473f0e7fde95db /manifests
parent93851f9f3677009885e54fd53d9150aa5f527078 (diff)
downloadpuppet-backupninja-ea5cf965fc63ba39507de5e68f39563b87b7f0bc.tar.gz
puppet-backupninja-ea5cf965fc63ba39507de5e68f39563b87b7f0bc.tar.bz2
declare $directory not only if $type is 'remote'
Diffstat (limited to 'manifests')
-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'),