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

bareos Resource file conventions changed with version 22 #133

Open
jdreffein opened this issue Feb 6, 2023 · 0 comments
Open

bareos Resource file conventions changed with version 22 #133

jdreffein opened this issue Feb 6, 2023 · 0 comments

Comments

@jdreffein
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: *
  • Ruby: *
  • Distribution: *
  • Module version: *

How to reproduce (e.g Puppet code you use)

upgrade packages for bareos from 21 to 22 (no matter how).

What are you seeing

client does not start anymore.
package deploys bareos-fd.d/client/myself.conf instead of former bareos-fd.d/client/bareos-fd.conf (which is still used and created by module). From then there are two config files while there must only be one.

What behaviour did you expect instead

switch to new naming convention for bareos version 22 (also see pull request #129 by https://github.com/aba-rechsteiner which hasn't included this yet)

Output log

bareos-df: Fatal Error at filed/filed.cc:322 because:
bareos-fd: Only on Client resource permitted in /etc/bareos/bareos-fd.d//.conf

Any additional information you'd like to impart

https://docs.bareos.org/Configuration/CustomizingTheConfiguration.html#resource-file-conventions

Resource file conventions
Each configuration resource has to use its own configuration file.

The path of a resource file is COMPONENT.d/RESOURCETYPE/RESOURCENAME.conf.

The name of the configuration file is identical with the resource name:

e.g.

bareos-dir.d/director/bareos-dir.conf

bareos-dir.d/pool/Full.conf

Exceptions:

The resource file bareos-fd.d/client/myself.conf always has the file name myself.conf, while the name is normally set to the hostname of the system.

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

No branches or pull requests

1 participant