mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-05 12:45:38 +01:00
if a restauth key is missing in config file or if restauth is set to true, glusterd2 will do token authentication. Authentication can be disabled by by setting restauth key in the configuration to false. updated test cases to use authentication if auth file is present added default rest authentication in glustercli Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
22 lines
388 B
Bash
Executable File
22 lines
388 B
Bash
Executable File
#!/bin/bash
|
|
|
|
OUTDIR=${1:-build}
|
|
mkdir -p "$OUTDIR"
|
|
|
|
OUTPUT=$OUTDIR/$GD2.toml
|
|
|
|
|
|
cat >"$OUTPUT" <<EOF
|
|
|
|
localstatedir = "$GD2STATEDIR"
|
|
logdir = "$GD2LOGDIR"
|
|
logfile = "$GD2.log"
|
|
loglevel = "INFO"
|
|
rundir = "$GD2RUNDIR"
|
|
defaultpeerport = "24008"
|
|
peeraddress = ":24008"
|
|
clientaddress = ":24007"
|
|
#restauth should be set to false to disable REST authentication in glusterd2
|
|
#restauth = false
|
|
EOF
|