Commit 93b370be authored by Micah Anderson's avatar Micah Anderson

allow for a resource override of managing the ssh directory

parent d6f0ce44
...@@ -27,6 +27,10 @@ class backupninja::client { ...@@ -27,6 +27,10 @@ class backupninja::client {
'' => true, '' => true,
default => $keymanage default => $keymanage
} }
$real_ssh_dir_manage = $ssh_dir_manage ? {
'' => true,
default => $ssh_dir_manage
}
package { 'backupninja': package { 'backupninja':
ensure => '0.9.5-3'; ensure => '0.9.5-3';
} }
......
...@@ -23,7 +23,7 @@ define backupninja::rdiff( ...@@ -23,7 +23,7 @@ define backupninja::rdiff(
"/home/*/gtk-gnutella-downloads" ], "/home/*/gtk-gnutella-downloads" ],
$include = [ "/var/spool/cron/crontabs", "/var/backups", "/etc", "/root", $include = [ "/var/spool/cron/crontabs", "/var/backups", "/etc", "/root",
"/home", "/usr/local/*bin", "/var/lib/dpkg/status*" ], "/home", "/usr/local/*bin", "/var/lib/dpkg/status*" ],
$vsinclude = false, $keep = 30, $sshoptions = false, $options = false, $manage_ssh_dir = true, $vsinclude = false, $keep = 30, $sshoptions = false, $options = false, $ssh_dir_manage = true,
$ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true,
$backuptag = false) $backuptag = false)
{ {
...@@ -35,7 +35,7 @@ define backupninja::rdiff( ...@@ -35,7 +35,7 @@ define backupninja::rdiff(
backupninja::server::sandbox backupninja::server::sandbox
{ {
"${user}-${name}": user => $user, host => $host, dir => $directory, "${user}-${name}": user => $user, host => $host, dir => $directory,
manage_ssh_dir => $manage_ssh_dir, ssh_dir => $ssh_dir, manage_ssh_dir => $ssh_dir_manage, ssh_dir => $ssh_dir,
authorized_keys_file => $authorized_keys_file, installuser => $installuser, authorized_keys_file => $authorized_keys_file, installuser => $installuser,
backuptag => $backuptag backuptag => $backuptag
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment