aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-08-27 13:20:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2009-08-27 13:20:38 -0300
commitd162c8429284b2dd18f90c23095935b35cc0106c (patch)
tree91c4e3a0763689a97ae9401129cc1898f5dcf5be /manifests
parent6734c256525e1dd42ba3648db82083bcabca66ed (diff)
downloadpuppet-backupninja-d162c8429284b2dd18f90c23095935b35cc0106c.tar.gz
puppet-backupninja-d162c8429284b2dd18f90c23095935b35cc0106c.tar.bz2
Trying to avoid duplicate definition of backupninja::client::key on backupninja::rdiff
Diffstat (limited to 'manifests')
-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
+ }
}
}
}