2 ## Declare an id tag for each trust router instance
5 TR_INSTANCES[0]="default"
6 TR_INSTANCES[1]="tr-test"
9 ## Declare the default configuration
12 TR_DEFAULT_USER="trustrouter" # Username to execute the trust router as
13 TR_DEFAULT_PIDDIR="/var/run/trust_router" # Directory to store PIDFile in
14 TR_DEFAULT_CFGDIR="/etc/trust_router/conf.d" # Config directory
15 TR_DEFAULT_LOGDIR="/var/log/trust_router" # Trust router log directories
16 TR_DEFAULT_AUTOSTART=true # Default autostart state
17 TR_DEFAULT_PORT=12309 # Port instance should be running on
18 TR_DEFAULT_TEST_ACCEPTOR="tr.moonshot.local" # Acceptor name to expect when testing
19 TR_DEFAULT_TEST_RPREALM="apc.moonshot.local" # RP Realm to assert when testing
20 TR_DEFAULT_TEST_COMMUNITY="apc.moonshot.local" # Community to query when testing
21 TR_DEFAULT_TEST_REALM="apc.moonshot.local" # Realm to request when testing
24 ## Declare the configuration arrays
27 declare -A TR_CONFIG_USER
28 declare -A TR_CONFIG_PIDDIR
29 declare -A TR_CONFIG_CFGDIR
30 declare -A TR_CONFIG_LOGDIR
31 declare -A TR_CONFIG_PORT
32 declare -A TR_CONFIG_AUTOSTART
33 declare -A TR_CONFIG_TEST_ACCEPTOR
34 declare -A TR_CONFIG_TEST_RPREALM
35 declare -A TR_CONFIG_TEST_COMMUNITY
36 declare -A TR_CONFIG_TEST_REALM
39 ## Override the default configuation for each instance as required
42 TR_CONFIG_PORT[tr-test]=12345
43 TR_CONFIG_AUTOSTART[tr-test]=false