]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
send the fqdn, not the specified host, to the sandbox so that it knows for which...
authorAntoine Beaupre <anarcat@koumbit.org>
Tue, 6 Jan 2009 21:49:02 +0000 (16:49 -0500)
committerAntoine Beaupre <anarcat@koumbit.org>
Tue, 6 Jan 2009 21:49:02 +0000 (16:49 -0500)
manifests/rdiff.pp

index 4abc9b270aa33f6764992a95223dc5c424758031..0228a06877e996b49e422e28cdb9dc36b6c926d3 100644 (file)
@@ -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