Commit a12279a4 authored by varac's avatar varac

default parameter for $home moved to define parameter

parent 5b8e7c59
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment