]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
Trying to avoid duplicate definition of backupninja::client::key on backupninja:...
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Aug 2009 16:20:38 +0000 (13:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Aug 2009 16:20:38 +0000 (13:20 -0300)
manifests/rdiff.pp

index 579071bac4002ea603e6ccd6719eaf3361c438aa..2eb1d9b718c37336339f4c8cabf564e4f48f23a4 100644 (file)
@@ -44,11 +44,13 @@ define backupninja::rdiff(
         authorized_keys_file => $authorized_keys_file, installuser => $installuser,
         backuptag => $backuptag, keytype => $backupkeytype,
       }
-      
-      backupninja::client::key
-      {
-        "${user}-${name}": user => $user, host => $host,
-        installkey => $installkey
+     
+      if !defined(Backupninja::client::key["${user}-${name}"]) {
+        backupninja::client::key
+        {
+          "${user}-${name}": user => $user, host => $host,
+          installkey => $installkey
+        }
       }
     }
   }