chore(CI): fix redis ssl cluster error
This commit is contained in:
parent
ed2a675404
commit
ef88b283e8
|
@ -5,6 +5,7 @@ tls-cert-file /tls/redis.crt
|
||||||
tls-key-file /tls/redis.key
|
tls-key-file /tls/redis.key
|
||||||
tls-ca-cert-file /tls/ca.crt
|
tls-ca-cert-file /tls/ca.crt
|
||||||
tls-replication yes
|
tls-replication yes
|
||||||
|
tls-cluster yes
|
||||||
protected-mode no
|
protected-mode no
|
||||||
requirepass public
|
requirepass public
|
||||||
masterauth public
|
masterauth public
|
||||||
|
|
|
@ -90,7 +90,11 @@ do
|
||||||
continue;
|
continue;
|
||||||
fi
|
fi
|
||||||
if [ "${node}" = "cluster" ] ; then
|
if [ "${node}" = "cluster" ] ; then
|
||||||
yes "yes" | redis-cli --cluster create "$LOCAL_IP:7000" "$LOCAL_IP:7001" "$LOCAL_IP:7002" --pass public --no-auth-warning;
|
if $tls ; then
|
||||||
|
yes "yes" | redis-cli --cluster create "$LOCAL_IP:8000" "$LOCAL_IP:8001" "$LOCAL_IP:8002" --pass public --no-auth-warning --tls true --cacert /tls/ca.crt --cert /tls/redis.crt --key /tls/redis.key;
|
||||||
|
else
|
||||||
|
yes "yes" | redis-cli --cluster create "$LOCAL_IP:7000" "$LOCAL_IP:7001" "$LOCAL_IP:7002" --pass public --no-auth-warning;
|
||||||
|
fi
|
||||||
elif [ "${node}" = "sentinel" ] ; then
|
elif [ "${node}" = "sentinel" ] ; then
|
||||||
tee /_sentinel.conf>/dev/null << EOF
|
tee /_sentinel.conf>/dev/null << EOF
|
||||||
port 26379
|
port 26379
|
||||||
|
|
Loading…
Reference in New Issue