Commit b27f528d authored by Antoine Beaupre's avatar Antoine Beaupre

send the fqdn, not the specified host, to the sandbox so that it knows for...

send the fqdn, not the specified host, to the sandbox so that it knows for which host it's being configured
parent f1b23515
......@@ -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
......
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