[dev.icinga.com #2233] icinga.site.xml overwritten by make upgrade #648
Comments
Updated by mfriedrich on 2012-01-02 09:56:01 +00:00
app/config/ is the wrong location for upgrade safe configs - like described on the docs, use /etc/conf.d (or /etc/icinga-web if using a selfbuilt rpm) http://docs.icinga.org/latest/en/upgrading\_icingaweb.html as of icinga web 1.5.x |
Updated by ralfk on 2012-01-02 10:39:38 +00:00 Hm, but the docs still describe the site.xml files and it's not stated that they are not supported any more: (http://docs.icinga.org/latest/en/upgrading\_icingaweb.html)
And especially the icinga.site.xml files is still included by app/config/settings.xml. So, in fact it is still used, and as long as it is used it should not be overwritten, IMHO. The docs also say that (only?) the config files of app/modules/Appkit(/Cronks/Web)/config/ have been moved to etc/conf.d (http://docs.icinga.org/latest/en/icinga-web-config.html). So, what about app/config/? Question: How is the process of reading config files in etc/conf.d ? Are all .xml files read and considered as config files? Or do I need to include those files somewhere (like it was for the outdated site.xml files included like <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="icinga.site.xml">)? In general I feel that all the config parameters in various XML files are still more confusing than helping. I personally would consider to switch to non-XML config files. Or consolidate the files to really one place (dir). |
Updated by mfriedrich on 2012-01-02 11:20:50 +00:00 i'd say, this note is sufficient to remark that .site.xml is deprecated.
|
Updated by ralfk on 2012-01-02 11:38:57 +00:00 Ok, let's confirm that it is not supported any more. But how to migrate parameters from app/config/icinga.site.xml to the new config dir? By just copying the file to etc/conf.d/ as etc/conf.d/icinga.xml ? See my question in post #2. Thanks |
Updated by mhein on 2012-01-20 10:53:18 +00:00
We will be creating a new icinga.xml in etc/conf.d to allow overwriting settings like app title. |
Updated by mhein on 2012-01-26 08:49:20 +00:00
|
Updated by mhein on 2012-01-26 11:32:24 +00:00
Applied in changeset 39e8ae3. |
Updated by mhein on 2012-01-26 11:32:52 +00:00 Okay, new scheme is this: https://wiki.icinga.org/display/Dev/Icinga-Web+-+XML+configuration Hope this helps |
Updated by mhein on 2012-02-14 16:40:40 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/2233
Created by ralfk on 2012-01-02 09:48:20 +00:00
Assignee: mhein
Status: Resolved (closed on 2012-01-26 11:32:24 +00:00)
Target Version: 1.6.2
Last Update: 2012-02-14 16:40:40 +00:00 (in Redmine)
A make upgrade overwrites the file /usr/local/icinga-web/app/config/icinga.site.xml. All other site.xml files (like factories.site.xml and settings.site.xml) are kept.
Changesets
2012-01-26 10:43:29 +00:00 by mhein 39e8ae3
The text was updated successfully, but these errors were encountered: