As suggested in https://projects.tigase.org/issues/4876#note-5 we should include new config guide config-type=setup which would result in different defaults being used - bare-bone Tigase simply launching http-api component with setup module - it should mitigate compatibility issue and lack of initial config during startup (something like --gen-config-comp which only load components related for external component configuration)
Andrzej Wójcik (Tigase) commented 8 years ago
I created new config-mode=setup as described in task description. Here is how empty/default etc/init.properties file should look like:
For Tigase XMPP Server starup (normal) config-mode should be:
not set (no entry for this key)
default
--gen-config-def
wojciech.kapcia@tigase.net commented 8 years ago
Thank you Andrzej.
Daniel, can you update our documentation with this configuration option and above informations? (probably properties guide and then in main guide we have more detailed description)
Daniel Wisnewski commented 8 years ago
Edited documentation, I added the new types, but I was unsure if the old list got smaller or not so let me know if it's just blank, default, setup, and --gen-config-default, or includes the others as well.
wojciech.kapcia@tigase.net commented 8 years ago
Anrzej, pleas clarify whether supported modes are the same.
Andrzej Wójcik (Tigase) commented 8 years ago
I've restored this old config types which got lost during conversion of Tigase XMPP Server to kernel based architecture.
So we have following config types:
default - it replaces old config types --gen-config-def@, @--gen-config-all and --gen-config-default
In this case we load default beans we assume that should be loaded.
session-manager - replaces --gen-config-sm
connection-managers - replaces --gen-config-cs
component - replaces --gen-config-comp
setup - new type of config created for initial configuration of Tigase XMPP Server
I made sure that each config type loads similar components as it did in previous versions.
wojciech.kapcia@tigase.net commented 8 years ago
Dan, please update documentation accordingly.
%andrzej.wojcik
does the converter support new naming convention (or the old ones are still supported, i.e. with dashes)?
Andrzej Wójcik (Tigase) commented 8 years ago
%wojtek Converter replaces old values with new one during conversion and old ones are no longer supported.
As suggested in https://projects.tigase.org/issues/4876#note-5 we should include new config guide
config-type=setup
which would result in different defaults being used - bare-bone Tigase simply launchinghttp-api
component withsetup
module - it should mitigate compatibility issue and lack of initial config during startup (something like--gen-config-comp
which only load components related for external component configuration)