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 config files into multiple files #17653
Comments
Would also be good to separate basic config from security config containing oauth client id's or security keys. a split of config files would allow to provide basic config for example via kubernetes config map, and the security config via kubernetes secrets. |
+1 from me as well. I am currently working on integration of grafana and oVirt DWH, and it's hard to decide what to do - write my own complete conf file (and risk overwriting existing changes done to it) or try to edit it in-place (and risk more bugs in my code and in the generated file). For reference, see also: https://unix.stackexchange.com/questions/4029/what-does-the-d-stand-for-in-directory-names/4040#4040 For a long time I didn't know about "name" for this convention, so it was hard to search for it. systemd calls them "drop-in directories", but I do not see that this name caught (searching google for "drop-in directory" finds mainly systemd references). |
I'd also write concrete details about how I think/hope it should look. In particular, this should not be left for packagers (e.g. Linux distributions) to do , but done consistently - so that it's easier for 3rd-parties (e.g. plugin developers) to supply their own custom conf without having to deal with the differences between distributions. It's based on my experience dealing over the years with various packages that did similar things, and even more so with those that didn't, at first, and with the pain people had adding this later.
|
@torkelo : is there interest in this feature? would this feature be merged if I prepare a PR for it? The include directive can only be specified at the top-level (not inside any section), and if the same section exists in multiple configuration files, the latter one overrides the first occurrence of any setting. [1] https://manpages.debian.org/unstable/openssh-server/sshd_config.5.en.html#Include_/etc/ssh/sshd_config.d/*.conf |
I agree
file2.conf: Do you suggest to revert sec1.key2 to its default setting, not keep val2?
|
No, sec1.key2 should not be reverted. I meant sec1.key1 of file2.conf will override sec1.key1 of file1.conf. sec1.key2 of file1.conf will persist.
I would keep it simple and restrict includes only to the global level. If we allow includes on the section level as well, we could end up with nested sections, which should not be possible. With the current planned approach you can create a new
|
Hi Andreas, Thank you, |
@avlitman: No, I didn't start implementing it. It is a big change, I'll only start working on it if a PR has chances to get merged upstream, but there was no reaction from Grafana's maintainers so far. |
@torkelo : is there interest in this feature? Thanks, |
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions! |
Please don't close this. I think a wider discussion is still needed |
What would you like to be added: for the configuration to be able to be split into a conf.d system
Why is this needed: As a maintainer of the Grafana Chef cookbook I find it troublesome to have to handle one monolithic configuration and would like the option to have the configuration split into sensible parts
The text was updated successfully, but these errors were encountered: