From e220143ff3ca8347c3f36c7a25a8601e99c781f6 Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Thu, 25 Jan 2024 23:35:01 +0530 Subject: [PATCH] make default host failover on install --- scripts/nm-quick.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/nm-quick.sh b/scripts/nm-quick.sh index 50db8bb2d..9a965dba0 100755 --- a/scripts/nm-quick.sh +++ b/scripts/nm-quick.sh @@ -162,6 +162,9 @@ configure_netclient() { nmctl host update $HOST_ID --default sleep 5 nmctl node create_ingress netmaker $NODE_ID + #setup failOver + sleep 5 + curl --location --request POST "https://api.${NETMAKER_BASE_DOMAIN}/api/v1/node/${NODE_ID}/failover" --header "Authorization: Bearer ${MASTER_KEY}" set -e }