aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/rdiff.pp9
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index 4abc9b2..0228a06 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -27,6 +27,11 @@ define backupninja::rdiff(
$ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $key = false,
$backuptag = false)
{
+ $real_backuptag = $backuptag ? {
+ false => $host,
+ default => $backuptag
+ }
+
$directory = "$home/rdiff-backup/"
include backupninja::client
case $type {
@@ -35,10 +40,10 @@ define backupninja::rdiff(
backupninja::server::sandbox
{
- "${user}-${name}": user => $user, host => $host, dir => $home,
+ "${user}-${name}": user => $user, host => $fqdn, dir => $home,
manage_ssh_dir => $ssh_dir_manage, ssh_dir => $ssh_dir, key => $key,
authorized_keys_file => $authorized_keys_file, installuser => $installuser,
- backuptag => $backuptag
+ backuptag => $real_backuptag
}
backupninja::client::key