diff options
-rw-r--r-- | manifests/rdiff.pp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index bcaee51..c9363be 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -27,17 +27,16 @@ define backupninja::rdiff( $ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $key = false, $backuptag = false, $home = false, $backupkeytype = "rsa", $backupkeystore = false, $extras = false) { - $real_backuptag = $backuptag ? { - false => "backupninja-$host", - default => $backuptag - } - include backupninja::client::defaults case $type { 'remote': { case $host { false: { err("need to define a host for remote backups!") } } - + $real_backuptag = $backuptag ? { + false => "backupninja-$host", + default => $backuptag + } + $real_home = $home ? { false => "/home/${user}-${name}", default => $home, |