[Koha-bugs] [Bug 26790] Refactor Koha configuration (koha-conf.xml)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 30 07:20:04 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26790

--- Comment #10 from David Cook <dcook at prosentient.com.au> ---
(In reply to Tomás Cohen Arazi from comment #9)
> My idea with bug 14162 was to move this into a file that would be
> manipulated using a CLI tool, or the UI, and we can maintain  with our
> packaging tools.

I find this idea attractive.

> The main problem I faced, and raise here: it would be great to have a way to
> split the configuration with includes, for example: the ldap config could be
> a separate file.

That's a good point. I was envisioning configuration broken up to multiple
files like that as well, although I figured the key in the main configuration
file would be something like "ldap_config_file":
"/etc/koha/sites/SITE/ldap_config.yml".

I suppose an alternative might be something like...
/etc/koha/sites/SITE/conf.d/ldap_config.yml and LDAP code looks for a file
called "ldap_config.yml" in a configuration directory pointed to by the main
/etc/koha/sites/SITE/koha-conf.yml file?

I suppose in both scenarios you need some kind of mechanism for loading the
config (either at start-up or on demand...)

Food for thought...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list