pystemon icon indicating copy to clipboard operation
pystemon copied to clipboard

Split pystemon.yaml config file

Open osagit opened this issue 3 years ago • 1 comments

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 ?

osagit avatar Apr 08 '21 13:04 osagit

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?

  1. the current model as it is now with everything in one file
  2. an option where a search.yaml file is used to contain the search keywords? (like some python code that if search is not present in the yaml, include a file called search.yaml )

cvandeplas avatar Apr 08 '21 18:04 cvandeplas