summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/rdiff.pp12
1 files changed, 7 insertions, 5 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index 579071b..2eb1d9b 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -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
+ }
}
}
}