#Question for conf_path usage

1 messages · Page 1 of 1 (latest)

grizzled ginkgo
#

I read about the new conf_path option in 24.05 and think about restructuring my config files. One question came to my mind. If I put a custom.yaml in the custom path, will it merge with the default config?

Example
conf_path: customconf:conf

Custom folder with only the following file
customconf └── zapi └── custom.yaml

Content of custom.yaml
objects: NetPort: netport.yaml

tawny garden
grizzled ginkgo
#

In my example I did not change the NetPort template itself. I just want to add the default NetPort template to the configuration. Right now the custom.yaml resides next to the default.yaml in the default config path. Is it possible to just move the cusom.yaml to the customconf path?

tawny garden
#

I have tried locally where aggr.yaml and aggr_custom.yaml resides in conf directory and I have just moved custom.yaml in other directory. Things are working fine and both templates are merged as designed.

harvest % tree testa 
testa
└── zapi
    └── custom.yaml

2 directories, 1 file
harvest % cat testa/zapi/custom.yaml 

collector:          Zapi

objects:
  Aggregate:                   aggr_custom.yaml
harvest % tree conf/zapi/cdot/9.8.0 
conf/zapi/cdot/9.8.0
├── aggr.yaml
├── aggr_custom.yaml