diff options
Diffstat (limited to 'manifests/duplicity.pp')
-rw-r--r-- | manifests/duplicity.pp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/manifests/duplicity.pp b/manifests/duplicity.pp index a05da87..bb70045 100644 --- a/manifests/duplicity.pp +++ b/manifests/duplicity.pp @@ -90,6 +90,7 @@ define backupninja::duplicity( $order = 90, $ssh_dir_manage = true, $ssh_dir = "${destdir}/.ssh", $authorized_keys_file = 'authorized_keys', + $sandbox = true, $installuser = true, $backuptag = "backupninja-${::fqdn}", # key options @@ -104,17 +105,19 @@ define backupninja::duplicity( $order = 90, 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 |