Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
spaceKeyGrouper
pageTitleNavigation


Children Display

In a patch to Grouper 2.4, Grouper will allow configuration which is normally in config files to be stored in the database.  Configuration in the database will make the configuration consistent in an environment, otherwise the config files need to be kept in sync for the UI servers, WS servers, daemons, and GSH.   Also, editing the configuration in the UI will prevent configuration  problems and help users to configure Grouper easier and more reliably.

...

This "database:grouper" will check the grouper database table: grouper_config for overlays.  This should be last so that when you edit something in the UI, it will take effect.

ColumnDescription
IDUUID
CONFIG_FILE_NAMEConfig file name without the "base", e.g. grouper.properties or grouper-loader.properties
CONFIG_KEYkey of the config, e.g. grouper.env.name
CONFIG_VALUE

value of the config, on the right of the equals sign in the properties file. Note, currently there is a 4k limit to size of value

Note: there are more columns in this table which are currently unused

Note: if you have configs you want to differ in different components (e.g. ws/ui/daemon), you need to set those in the config files, and not in the database, which will span all components (e.g. UI/WS/Daemon) that use that database

...

Code Block
# group who can assign id index cols (also, wheel or root is allowed)
# {valueType: group}
grouper.tableIndex.groupWhoCanAssignIdIndex = $$grouper.rootStemForBuiltinObjects$$:canAssignIdIndex


Metadata nameJSON typeDefaultExample valueDescription
multiplebooleanfalsetrue/falseif comma separated values
mustExtendClassString
a.b.c.SomeClassIf the value is a class and must extend another class
mustImplementInterfaceString
a.b.c.SomeInterfaceIf the value is a class and must extend an interface

regex

String
^configuration.autocreate.group.description.[0-9]+$If the key must match a certain regex
requiredbooleanfalsetrue/falseIf a value must be provided
requiresRestartbooleanfalsetrue/falseIf the JVM needs to be restarted when changing value
sampleValueString
SomethingAn example value that shows the user how to configure
sensitivebooleanfalsetrue/falseIf the value can be a password or something sensitive
valueTypeStringString

attributeDef, attributeDefName, boolean, class, floating, group, integer, password, stem, string, subject

From enum ConfigItemMetadataType, the type of the value


Configuration file layout

...