aboutsummaryrefslogtreecommitdiff
path: root/manifests/rdiff.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-05-30 18:03:32 +0000
committerMicah Anderson <micah@riseup.net>2008-05-30 18:03:32 +0000
commitb91a5259d4a854579c072680872b02b9e9b6970a (patch)
tree420ea7962ba3a3a128faea1db2bf23984d8ff808 /manifests/rdiff.pp
parent100bb69f2e721332e71e4e5bf8dd96cf3499296c (diff)
downloadpuppet-backupninja-b91a5259d4a854579c072680872b02b9e9b6970a.tar.gz
puppet-backupninja-b91a5259d4a854579c072680872b02b9e9b6970a.tar.bz2
change from installkeys to installkey
when you have two rdiff-backup calls, then the User is a Duplicate definition, i think the only way to do it is to have a variable that you can set to turn off user handling (which we make $installuser and $usermanage be consistant with $installkey and $keymanage), which is set true by default, but when you have a second rdiff call on a host, you can set it to false
Diffstat (limited to 'manifests/rdiff.pp')
-rw-r--r--manifests/rdiff.pp7
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index aec4d96..978b961 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -26,14 +26,15 @@ define backupninja::rdiff($order = 90,
$keep = 30,
$sshoptions = false,
$options = false,
- $installkeys = true
+ $installuser = true,
+ $installkey = true
) {
include backupninja::client
case $type {
'remote': {
case $host { false: { err("need to define a host for remote backups!") } }
- backupninja::server::sandbox { "${user}-${name}": user => $user, host => $host, dir => $directory }
- backupninja::client::key { "${user}-${name}": user => $user, host => $host, installkeys => $installkeys }
+ backupninja::server::sandbox { "${user}-${name}": user => $user, host => $host, dir => $directory, installuser => $installuser }
+ backupninja::client::key { "${user}-${name}": user => $user, host => $host, installkey => $installkey }
}
}
file { "${backupninja::client::configdir}/${order}_${name}.rdiff":