diff options
author | varac <varacanero@zeromail.org> | 2013-04-20 16:24:30 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-04-20 16:24:30 +0200 |
commit | a12279a44c986325751b1a978919c16de844c57a (patch) | |
tree | e61220167d7c3bb3b9d277f6046f7d1369b76d2e /manifests | |
parent | 5b8e7c591888d9601880a800da94728f163f7155 (diff) | |
download | puppet-backupninja-a12279a44c986325751b1a978919c16de844c57a.tar.gz puppet-backupninja-a12279a44c986325751b1a978919c16de844c57a.tar.bz2 |
default parameter for $home moved to define parameter
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/rdiff.pp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index 63029d2..a60f9ca 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -16,7 +16,8 @@ # directories. # define backupninja::rdiff( - $order = 90, $ensure = present, $user = false, $home = false, $host = false, + $order = 90, $ensure = present, $user = false, + $home = "/home/${user}-${name}", $host = false, $type = 'local', $exclude = [ "/home/*/.gnupg", "/home/*/.local/share/Trash", "/home/*/.Trash", "/home/*/.thumbnails", "/home/*/.beagle", "/home/*/.aMule", @@ -29,6 +30,8 @@ define backupninja::rdiff( { include backupninja::client::rdiff_backup + $directory = "$real_home/rdiff-backup/" + case $type { 'remote': { case $host { false: { err("need to define a host for remote backups!") } } @@ -56,11 +59,6 @@ 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, |