diff options
author | varac <varacanero@zeromail.org> | 2013-03-07 13:30:16 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-03-07 13:30:16 +0100 |
commit | ea5cf965fc63ba39507de5e68f39563b87b7f0bc (patch) | |
tree | 8191e3b9d6458b59caade582a6473f0e7fde95db /manifests | |
parent | 93851f9f3677009885e54fd53d9150aa5f527078 (diff) | |
download | puppet-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.pp | 13 |
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'), |