View Issue Details

IDProjectCategoryView StatusLast Update
0000198bareos-coreGeneralpublic2016-04-15 16:19
Reportermaik Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
PlatformLinuxOSanyOS Version3
Fixed in Version16.2.1 
Summary0000198: Implement "include directory" directive for configuration files
DescriptionToday single files or output of scripts can be included into configurations.

It would be useful to have a construct like:
@/etc/bareos/conf.d

In the case that conf.d is a directory, any files readable in this directory should be included.

This would make it easier for automatic deployment tools or any other automatization mechanism to simply drop configuration fragments into files in include directories.

Usecase: if a backup client is deployed, the backup configuration could be dropped by script into the include directory.
TagsNo tags attached.

Activities

bjarne

bjarne

2013-08-27 13:36

reporter   ~0000654

Last edited: 2013-08-27 13:36

According to bacula documentation this can be done with
@|"sh -c 'for f in /etc/bareos/conf.d/* ; do echo @${f} ; done'"

joergs

joergs

2016-04-08 16:14

developer   ~0002231

Fix committed to bareos master branch with changesetid 6186.

Related Changesets

bareos: master 79efc1fd

2016-02-18 18:28

joergs

Ported: N/A

Details Diff
config files: allow wildcards to include config files

Allow the usage of wildcards when including other config files.

Until now, the include single file (@/path/to/config/file) or executing
scripts (@|"sh -c 'some script to create configuration'") have been
possible.

Now wildcards are supported in the include path:

@/path/to/config/*.conf

or even

@/path/to/config/*/*.conf

Fixes 0000198: Implement "include directory" directive
for configuration files
Affected Issues
0000198
mod - autoconf/configure.in Diff File
mod - src/lib/lex.c Diff File
mod - src/lib/protos.h Diff File
mod - src/win32/compat/glob.c Diff File
mod - src/win32/compat/include/mingwconfig.h Diff File

Issue History

Date Modified Username Field Change
2013-06-28 14:29 maik New Issue
2013-07-05 16:19 maik Status new => acknowledged
2013-08-27 13:36 bjarne Note Added: 0000654
2013-08-27 13:36 bjarne Note Edited: 0000654
2016-02-18 17:29 joergs Assigned To => joergs
2016-02-18 17:29 joergs Status acknowledged => assigned
2016-02-18 17:30 joergs Status assigned => confirmed
2016-04-08 16:14 joergs Changeset attached => bareos master 79efc1fd
2016-04-08 16:14 joergs Note Added: 0002231
2016-04-08 16:14 joergs Status confirmed => resolved
2016-04-08 16:14 joergs Resolution open => fixed
2016-04-15 16:19 joergs Status resolved => closed
2016-04-15 16:19 joergs Fixed in Version => 16.2.1
2016-04-15 16:19 joergs Assigned To joergs =>