summaryrefslogtreecommitdiff
path: root/manifests/rdiff.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-07-31 13:02:28 +0000
committerMicah Anderson <micah@riseup.net>2008-07-31 13:02:28 +0000
commitd418a9191053726a4a0e4d4c1f45f9080d5d0439 (patch)
treecaebf8b49fa283756c8c8c90457e511a68a648d1 /manifests/rdiff.pp
parentef4832d9413f518e81aa13903de6f705ad1e5557 (diff)
setup the backupninja module to enable specification of the location
of the ssh authorized_keys directories and files so that if you are not using the standard location for authorized_keys files ($HOME/.ssh/authorized_keys) and instead using the /etc/ssh/sshd_config option "AuthorizedKeysFile" you can then specify where that will be. For example, if your /etc/ssh/sshd_config has: AuthorizedKeysFile /etc/ssh/authorized_keys/$u then you could specify in the rdiff-backup definition the following parameters: ... ssh_dir => "/etc/ssh/authorized_keys", authorized_keys_file => "${hostname}", to create the file /etc/ssh/authorized_keys/${hostname} instead of the default location (if unspecifed, the default is used).
Diffstat (limited to 'manifests/rdiff.pp')
-rw-r--r--manifests/rdiff.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index 580af87..fc2648e 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -35,7 +35,7 @@ define backupninja::rdiff($order = 90,
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, installuser => $installuser, backuptag => $backuptag }
+ backupninja::server::sandbox { "${user}-${name}": user => $user, host => $host, dir => $directory, ssh_dir => $ssh_dir, authorized_keys_file => $authorized_keys_file, installuser => $installuser, backuptag => $backuptag }
backupninja::client::key { "${user}-${name}": user => $user, host => $host, installkey => $installkey }
}
}