Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split pystemon.yaml config file #114

Open
osagit opened this issue Apr 8, 2021 · 1 comment
Open

Split pystemon.yaml config file #114

osagit opened this issue Apr 8, 2021 · 1 comment

Comments

@osagit
Copy link
Contributor

osagit commented Apr 8, 2021

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 ?

@cvandeplas
Copy link
Owner

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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants