Commit 77ca6deb authored by Antoine Beaupre's avatar Antoine Beaupre

add extras flag to add arbitrary options to rdiff configuration

parent e7ac1632
...@@ -25,7 +25,7 @@ define backupninja::rdiff( ...@@ -25,7 +25,7 @@ define backupninja::rdiff(
"/home", "/usr/local/*bin", "/var/lib/dpkg/status*" ], "/home", "/usr/local/*bin", "/var/lib/dpkg/status*" ],
$vsinclude = false, $keep = 30, $sshoptions = false, $options = '--force', $ssh_dir_manage = true, $vsinclude = false, $keep = 30, $sshoptions = false, $options = '--force', $ssh_dir_manage = true,
$ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $key = false, $ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $key = false,
$backuptag = false) $backuptag = false, $extras = false)
{ {
$real_backuptag = $backuptag ? { $real_backuptag = $backuptag ? {
false => "backupninja-$host", false => "backupninja-$host",
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
<%= 'options = ' + options if options %> <%= 'options = ' + options if options %>
<%= extras if extras %>
[source] [source]
type = local type = local
<%= 'keep = ' + keep if keep %> <%= 'keep = ' + keep if keep %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment