Includes
OliveTin 3k supports including configuration files from other files. This is useful for organizing large configurations or reusing common settings across multiple actions.
Include Syntax
To include another configuration file, use the following syntax in your main configuration file:
include: config.d
This will include all config files in the <config dir>/config.d/ directory.
Include Logic
Files are included in alphabetical order based on their filenames. This allows you to control the order of inclusion by naming your files accordingly. For example;
-
01-setup.yamlcontainslogLevel: debug -
02-actions.yamlcontainslogLevel: info -
Final
logLevelwill beinfosince02-actions.yamlis included after01-setup.yaml.
Everything under actions is merged into a single actions list after all files are included. This means you can define actions in multiple files and they will be combined into one list.
All other "lists" are overwritten by later files. For example, if you define dashboards, entities, accessControlLists or similar in multiple files, only the last definition will be used.
|