Project

General

Profile

Feature #4880

config-type=setup implementation

Added by Wojciech Kapcia TigaseTeam about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
2017-03-28
Due date:
2017-04-28
% Done:

100%

Estimated time:
Source Code Disclaimer:

Description

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)


Related issues

Related to Tigase XMPP Server - Task #4877: default dataSource should use either dummy or XMLRepositoryClosed2017-02-012017-04-14

Related to Tigase XMPP Server - Bug #4876: Lots of exceptions and errors while starting the serverClosed2017-02-012017-03-31

Related to Tigase XMPP Server - Bug #4888: Kernel beans are active by defaultClosed2017-02-082017-03-07

Related to Tigase XMPP Server - Bug #4991: 'Default' Data Repo Bean causes JREClosed2017-04-13

Related to Tigase HTTP API - Task #5168: Adjust Setup module to properly generate DSL instead of properties fileClosed2017-04-21

Associated revisions

Revision c875ce6a (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

#4896,#4880#: added setup mode (config-type=setup)

Revision 53a4bcaf (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

#4896,#4880#: added setup mode (config-type=setup)

Revision 1e68bc5c (diff)
Added by Daniel Wisnewski IoT 1 Cloud about 2 years ago

#4880 Added config-type changes to documentation

Revision b14c97a1 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

#4880: restored lost config-type options

Revision 2adb6aaa (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

#4880: restored lost config-type options

Revision 01fe2c35 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

#4880: restored lost config-type options

Revision 5fe687d4 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

#4880: restored lost config-type options

Revision b0fc1c7a (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

#4880: restored lost config-type options

Revision 282cdefb (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

#4880: restored lost config-type options

Revision 946eb13c (diff)
Added by Daniel Wisnewski IoT 1 Cloud almost 2 years ago

#4880 Changed config-type descriptions.

History

#1 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Related to Task #4877: default dataSource should use either dummy or XMLRepository added

#2 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Related to Bug #4876: Lots of exceptions and errors while starting the server added

#3 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Related to Bug #4888: Kernel beans are active by default added

#4 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

  • Related to Bug #4991: 'Default' Data Repo Bean causes JRE added

#5 Avatar?id=6023&size=24x24 Updated by Artur Hefczyc TigaseTeam about 2 years ago

  • Target version deleted (tigase-server-8.0.0)

#6 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

  • Due date set to 2017-04-03
  • Start date changed from 2017-02-02 to 2017-03-28

#7 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

  • Related to Task #5168: Adjust Setup module to properly generate DSL instead of properties file added

#8 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam about 2 years ago

  • Status changed from New to In QA
  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia
  • % Done changed from 0 to 100

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

#9 Updated by Wojciech Kapcia TigaseTeam about 2 years ago

  • Due date changed from 2017-04-03 to 2017-04-07
  • Assignee changed from Wojciech Kapcia to Daniel Wisnewski

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)

#10 Updated by Daniel Wisnewski IoT 1 Cloud about 2 years ago

  • Status changed from In QA to Feedback
  • Assignee changed from Daniel Wisnewski to Wojciech Kapcia

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.

#11 Updated by Wojciech Kapcia TigaseTeam almost 2 years ago

  • Due date changed from 2017-04-07 to 2017-04-26
  • Assignee changed from Wojciech Kapcia to Andrzej Wójcik

Anrzej, pleas clarify whether supported modes are the same.

#12 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

  • Due date changed from 2017-04-26 to 2017-04-28
  • Status changed from Feedback to In QA
  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia

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.

#13 Updated by Wojciech Kapcia TigaseTeam almost 2 years ago

  • Assignee changed from Wojciech Kapcia to Daniel Wisnewski

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)?

#14 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 2 years ago

%wojtek Converter replaces old values with new one during conversion and old ones are no longer supported.

#15 Updated by Daniel Wisnewski IoT 1 Cloud almost 2 years ago

  • Status changed from In QA to Closed

Uploaded config-type changes to documentation.

Also available in: Atom PDF