Skip to content

Support for arc.conf.d

Andrii Salnikov requested to merge andrii/arc:conf_d into next

Introducing the support in arcconfig-parser to read and merge conf.d defined configuration.

E.g. the following structure can be defined:


Merge logic:

Config files are read sequentially: /etc/arc.conf first and everything in arc.conf.d in alphabetically sorted order.

Blocks are automatically re-ordered in accordance to the defaults-defined order of block keywords. If several blocks defined with the same keyword but different identifiers (named blocks) they will be placed according to read-out order.

If same block defined in several config files, options inside this block are placed in the read-out order. Complex cases like overrides are not supported.

Merge request reports