aboutsummaryrefslogtreecommitdiff
path: root/manifests/rsync.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/rsync.pp')
-rw-r--r--manifests/rsync.pp27
1 files changed, 15 insertions, 12 deletions
diff --git a/manifests/rsync.pp b/manifests/rsync.pp
index a643415..56d37dd 100644
--- a/manifests/rsync.pp
+++ b/manifests/rsync.pp
@@ -71,6 +71,7 @@ define backupninja::rsync( $order = 90,
$ssh_dir = "${home}/.ssh",
$authorized_keys_file = 'authorized_keys',
# sandbox config
+ $sandbox = true,
$installuser = true,
$backuptag = "backupninja-${::fqdn}",
# monitoring
@@ -88,18 +89,20 @@ define backupninja::rsync( $order = 90,
'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}":