Projects tigase _server tigase-http-api Issues #39
config-type=setup implementation (#39)
wojciech.kapcia@tigase.net opened 8 years ago
Due Date
2017-04-27

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:

'config-type' = 'setup'

http () {
    setup () {
        'admin-user' = 'admin'
	'admin-password' = 'tigase'
    }
}

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.

Daniel Wisnewski commented 8 years ago

Uploaded config-type changes to documentation.

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
RedmineID
4880
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-http-api#39
Please wait...
Page is in error, reload to recover