diff options
author | Micah Anderson <micah@riseup.net> | 2008-06-03 16:56:00 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-06-03 16:56:00 +0000 |
commit | 83a71156552df7eccd2794e8d6386b922286a130 (patch) | |
tree | ee62d2bdd89f98ee49d48f07872f41454a6308b3 /manifests/rdiff.pp | |
parent | 1abb2e62f1dc2ac374403374e5bfd6511a12de03 (diff) | |
download | puppet-backupninja-83a71156552df7eccd2794e8d6386b922286a130.tar.gz puppet-backupninja-83a71156552df7eccd2794e8d6386b922286a130.tar.bz2 |
add a way to override the automatic tag creation based on hostname
set the backuptag on crabgrass to not use the default one, otherwise
it wont be collected
Diffstat (limited to 'manifests/rdiff.pp')
-rw-r--r-- | manifests/rdiff.pp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp index 978b961..0a84a6b 100644 --- a/manifests/rdiff.pp +++ b/manifests/rdiff.pp @@ -27,13 +27,14 @@ define backupninja::rdiff($order = 90, $sshoptions = false, $options = false, $installuser = true, - $installkey = true + $installkey = true, + $backuptag = false ) { include backupninja::client case $type { 'remote': { case $host { false: { err("need to define a host for remote backups!") } } - backupninja::server::sandbox { "${user}-${name}": user => $user, host => $host, dir => $directory, installuser => $installuser } + backupninja::server::sandbox { "${user}-${name}": user => $user, host => $host, dir => $directory, installuser => $installuser, backuptag => $backuptag } backupninja::client::key { "${user}-${name}": user => $user, host => $host, installkey => $installkey } } } |