2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-04-10 19:01:35 +00:00

Induce more versions of openssh to do the proper thing

This commit is contained in:
Jarrod Johnson
2026-02-23 15:07:19 -05:00
parent 74dda48513
commit 69beaad3c9

View File

@@ -26,12 +26,13 @@ chmod 700 "$ASKPASS_SCRIPT"
# Set SSH_ASKPASS environment variable
export SSH_ASKPASS="$ASKPASS_SCRIPT"
export SSH_ASKPASS_REQUIRE=force
export DISPLAY=none
CERTDIR=$(mktemp -d)
trap "rm -rf $CERTDIR" EXIT
cd "$CERTDIR"
python3 /opt/confluent/lib/python/confluent/certutil.py -s "$SWITCHNAME"
ssh $SWITCHUSER@"$SWITCHNAME" <<EOC
setsid ssh $SWITCHUSER@"$SWITCHNAME" <<EOC
enter candidate exclusive
/ system json-rpc-server admin-state enable
/ system tls server-profile fullcert key "$(<$CERTDIR/key.pem)"
@@ -39,4 +40,4 @@ enter candidate exclusive
/ system json-rpc-server network-instance mgmt https admin-state enable
/ system json-rpc-server network-instance mgmt https tls-profile fullcert
commit save
EOC
EOC