$ssh_dir_manage = true,
$ssh_dir = "${destdir}/.ssh",
$authorized_keys_file = 'authorized_keys',
+ $sandbox = true,
$installuser = true,
$backuptag = "backupninja-${::fqdn}",
# key options
case $password { false: { err("a password is necessary either to unlock the GPG key, or for symmetric encryption!") } }
# guarantees there's a configured backup space for this backup
- backupninja::server::sandbox { "${user}-${name}":
- user => $destuser,
- host => $desthost,
- dir => $destdir,
- manage_ssh_dir => $ssh_dir_manage,
- ssh_dir => $ssh_dir,
- authorized_keys_file => $authorized_keys_file,
- installuser => $installuser,
- backuptag => $backuptag,
- backupkeys => $backupkeystore,
- keytype => $backupkeytype,
+ if $sandbox {
+ backupninja::server::sandbox { "${user}-${name}":
+ user => $destuser,
+ host => $desthost,
+ dir => $destdir,
+ manage_ssh_dir => $ssh_dir_manage,
+ ssh_dir => $ssh_dir,
+ authorized_keys_file => $authorized_keys_file,
+ installuser => $installuser,
+ backuptag => $backuptag,
+ backupkeys => $backupkeystore,
+ keytype => $backupkeytype,
+ }
}
# the client's ssh key
$ssh_dir = "${home}/.ssh",
$authorized_keys_file = 'authorized_keys',
# sandbox config
+ $sandbox = true,
$installuser = true,
$backuptag = "backupninja-${::fqdn}",
# monitoring
'remote': {
case $host { false: { err("need to define a host for remote backups!") } }
- backupninja::server::sandbox { "${user}-${name}":
- user => $user,
- host => $host,
- dir => $home,
- manage_ssh_dir => $ssh_dir_manage,
- ssh_dir => $ssh_dir,
- key => $key,
- authorized_keys_file => $authorized_keys_file,
- installuser => $installuser,
- backuptag => $backuptag,
- backupkeys => $backupkeystore,
- keytype => $backupkeytype,
+ if $sandbox {
+ backupninja::server::sandbox { "${user}-${name}":
+ user => $user,
+ host => $host,
+ dir => $home,
+ manage_ssh_dir => $ssh_dir_manage,
+ ssh_dir => $ssh_dir,
+ key => $key,
+ authorized_keys_file => $authorized_keys_file,
+ installuser => $installuser,
+ backuptag => $backuptag,
+ backupkeys => $backupkeystore,
+ keytype => $backupkeytype,
+ }
}
backupninja::key { "${user}-${name}":
$ssh_dir = "${home}/.ssh",
$authorized_keys_file = 'authorized_keys',
# sandbox config
+ $sandbox = true,
$installuser = true,
$backuptag = "backupninja-${::fqdn}",
# monitoring
'remote': {
case $host { false: { err("need to define a host for remote backups!") } }
- backupninja::server::sandbox { "${user}-${name}":
- user => $user,
- host => $host,
- dir => $home,
- manage_ssh_dir => $ssh_dir_manage,
- ssh_dir => $ssh_dir,
- key => $key,
- authorized_keys_file => $authorized_keys_file,
- installuser => $installuser,
- backuptag => $backuptag,
- keytype => $backupkeytype,
- backupkeys => $backupkeystore,
+ if $sandbox {
+ backupninja::server::sandbox { "${user}-${name}":
+ user => $user,
+ host => $host,
+ dir => $home,
+ manage_ssh_dir => $ssh_dir_manage,
+ ssh_dir => $ssh_dir,
+ key => $key,
+ authorized_keys_file => $authorized_keys_file,
+ installuser => $installuser,
+ backuptag => $backuptag,
+ keytype => $backupkeytype,
+ backupkeys => $backupkeystore,
+ }
}
backupninja::key { "${user}-${name}":