r/fluent-bit: Support drop-in configuration files
Fluent Bit supports including configuration fragments from other files using its `includes` option. Adding a glob pattern to the default configuration will allow other roles to supply additional configuration by creating files in the `/etc/fluent-bit/include` directory. This makes composition of configuration significantly easier. Unfortunately, `fluent-bit` has a quirk in that there must exist at least one file matching the glob pattern, or it will fail to start. To work around this, we must supply an empty fragment.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
fluent_bit_config:
|
||||
includes:
|
||||
- /etc/fluent-bit/include/*.yml
|
||||
service: '{{ fluent_bit_config_service }}'
|
||||
parsers: '{{ fluent_bit_parsers }}'
|
||||
multiline_parsers: '{{ fluent_bit_multiline_parsers }}'
|
||||
|
||||
Reference in New Issue
Block a user