1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00
Files
glusterd2/scripts/gen-gd2conf.sh
Madhu Rajanna 0190411220 Enable Rest Authentication by default
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>
2018-07-10 13:52:48 +05:30

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