pystemon
pystemon copied to clipboard
Split pystemon.yaml config file
How about separating the pystemon.yaml
config file into 2 files ?
For instance, sources.yaml for the site sources maintenance and pystemon.yaml for other stuff like log, network etc.
In production, it addresses 2 kinds of contributors:
- system administrators for software installation pystemon.yaml
- and operators or business administrators to keep sources up to date sources.yaml
What do you think about it ?
I thought yaml supported such 'include' functionality, but it seems I'm wrong.
At first sight it feels that splitting it in two files would result in unnecessary complexity for the majority of people.
Now this being said, it also makes sense to allow some users to have the search
section in a separate file. Maybe in the future this could be even modular to allow this to be done on database level.
Would you be able to initiate a pull-request to allow both models?
- the current model as it is now with everything in one file
- an option where a
search.yaml
file is used to contain the search keywords? (like some python code that ifsearch
is not present in the yaml, include a file calledsearch.yaml
)