Skip to content

Commit

Permalink
[WIP] e2d members now join cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
missingcharacter committed Oct 1, 2021
1 parent 9c13d8e commit 5df3c7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ function generate_certs() {
${E2D_BIN} pki gencerts --ca-cert "${CA_CRT}" --ca-key "${CA_KEY}"
chown ${TEST_USERNAME}: *.{key,crt}
echo "certs were generated"
# We are setting MY_IP here because `ip` command is not available before
# we install iproute
MY_IP="$(ip a s eth0 | grep inet | awk '{ print $2 }' | cut -d'/' -f1)"
echo "my ip is ${MY_IP}"
}

function run_first_e2d() {
Expand Down Expand Up @@ -118,7 +122,7 @@ function run_e2d() {
--peer-key=${PEER_KEY} \
--server-cert=${SERVER_CRT} \
--server-key=${SERVER_KEY} \
--bootstrap-addrs ${E2D_LEADER_NAME}:7980"
--bootstrap-addrs ${E2D_LEADER_NAME}:7980,${MY_IP}:7980"
}


Expand Down

0 comments on commit 5df3c7a

Please sign in to comment.