Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple options resources for fileset #39

Open
philippdieter opened this issue May 19, 2019 · 4 comments
Open

Multiple options resources for fileset #39

philippdieter opened this issue May 19, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@philippdieter
Copy link
Contributor

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

@project0
Copy link
Collaborator

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?

@philippdieter
Copy link
Contributor Author

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.

@project0 project0 added the enhancement New feature or request label May 22, 2019
@benibr
Copy link
Contributor

benibr commented Apr 17, 2020

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

@AreYouLoco
Copy link

Related: #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants