diff options
Diffstat (limited to 'manifests/rdiff.pp')
-rw-r--r-- | manifests/rdiff.pp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index 98a74b2..d34fc88 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -47,11 +47,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 + } } } } |