diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-02-09 09:42:12 -0500 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2011-10-12 15:14:56 -0400 |
commit | 008b69a7b767899f7849607d3d12aff0aa51b264 (patch) | |
tree | ee764cda767a079e95c42e4d0140951c6534f492 | |
parent | 3f1417341b8357890997bc1a5157e19094ce9a2a (diff) | |
download | puppet-backupninja-008b69a7b767899f7849607d3d12aff0aa51b264.tar.gz puppet-backupninja-008b69a7b767899f7849607d3d12aff0aa51b264.tar.bz2 |
give sandbox user $home a saner default
-rw-r--r-- | manifests/rdiff.pp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index cd2c7eb..5ff7cb5 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -38,10 +38,13 @@ define backupninja::rdiff( } $real_home = $home ? { - false => "/home/${user}-${name}", + false => $backupdir ? { + '' => "/backup/${fqdn}", + default => "${backupdir}/${fqdn}", + }, default => $home, } - $directory = "$real_home/rdiff-backup/" + $directory = "${real_home}/rdiff-backup/" backupninja::server::sandbox { |