Multiple options resources for fileset
philippdieter opened this issue · 4 comments
Is there a way to specify multiple options resources for a include directive in a fileset definition?
I need a configuration like "Configuration 9.28" in http://download.bareos.org/bareos/experimental/nightly/documentation/html/bareos-manual-main-reference.html#x1-1440009.5.3
hmm, actually this is passed as hash, so multiple of Includes are not supported. Do you need the @
file include style? Or just different options for the includes?
At the moment I only need multiple options entries.
For the moment I found a workaround: Using spaces after the keyword, so "Options" and "Options " works. But it definitely doesn't feel right.
Hi,
wouldn't it be possible to pass as arrays instead of hashes? something like this maybe?
::bareos::director::fileset {'name':
include => [
include_name1 => [
'Options' => [
'signature' = 'MD5'
'WildFile' = '*.sql'
],
'Options' => [
'Exclude' = 'yes'
'Regex' = '.*'
],
'File' => [ ],
],
include_name2 => [
Options => [
'signature' = 'MD5'
],
File = [ "/etc/bareos" ],
],
],
# same for excludes
exclude => [
exclude_name1 => [
'Options' => [],
'Options' => [],
'File' => [],
],
]
Probably the include_exclude_item
must be changed then
Related: #134