]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
Oops
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Aug 2009 00:14:07 +0000 (21:14 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Aug 2009 00:14:07 +0000 (21:14 -0300)
manifests/rdiff.pp

index ec89006594fea39b37c49b3a7589c8e2f23fd909..b1dd7d259ca807fb2d503c7745e7dca56f82306e 100644 (file)
@@ -32,12 +32,13 @@ define backupninja::rdiff(
     'remote': {
       case $host { false: { err("need to define a host for remote backups!") } }
       
+      $real_home = $home ? {
+        false => $directory,
+        default => $home,
+      }
+
       backupninja::server::sandbox
       {
-        $real_home = $home ? {
-          false => $directory,
-          default => $home,
-        }
         "${user}-${name}": user => $user, host => $host, dir => $real_home,
         manage_ssh_dir => $ssh_dir_manage, ssh_dir => $ssh_dir,
         authorized_keys_file => $authorized_keys_file, installuser => $installuser,