From 72bb9a5cd5c20413992f140476d43ca837f65c1d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 19 Mar 2016 11:46:11 -0300 Subject: Adds sandbox param for rsync, rdiff and duplicity --- manifests/rdiff.pp | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'manifests/rdiff.pp') diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index cd73d22..294ec78 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -54,6 +54,7 @@ define backupninja::rdiff( $order = 90, $ssh_dir = "${home}/.ssh", $authorized_keys_file = 'authorized_keys', # sandbox config + $sandbox = true, $installuser = true, $backuptag = "backupninja-${::fqdn}", # monitoring @@ -68,18 +69,20 @@ define backupninja::rdiff( $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, - 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}": -- cgit v1.2.3