From d1a9fa92dac7e3bf7a23d1754e8cb3bf2e7a9d32 Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Thu, 9 Jan 2025 10:46:42 +0530 Subject: [PATCH 1/2] set failover --- scripts/nm-quick.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/nm-quick.sh b/scripts/nm-quick.sh index cf6a75d2c..6cc358c3e 100755 --- a/scripts/nm-quick.sh +++ b/scripts/nm-quick.sh @@ -167,8 +167,12 @@ configure_netclient() { nmctl host update $HOST_ID --default sleep 5 nmctl node create_remote_access_gateway netmaker $NODE_ID - sleep 2 +# create network for internet access vpn + if [ "$INSTALL_TYPE" = "pro" ]; then + #setup failOver + curl --location --request POST "https://api.${NETMAKER_BASE_DOMAIN}/api/v1/node/${NODE_ID}/failover" --header "Authorization: Bearer ${MASTER_KEY}" + fi set -e } From 8d4b2d572e2db0e8d060ecf2c227b27a041aa0f8 Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Thu, 9 Jan 2025 10:47:33 +0530 Subject: [PATCH 2/2] update comment --- scripts/nm-quick.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nm-quick.sh b/scripts/nm-quick.sh index 6cc358c3e..0fe352cfe 100755 --- a/scripts/nm-quick.sh +++ b/scripts/nm-quick.sh @@ -168,7 +168,7 @@ configure_netclient() { sleep 5 nmctl node create_remote_access_gateway netmaker $NODE_ID sleep 2 -# create network for internet access vpn + # set failover if [ "$INSTALL_TYPE" = "pro" ]; then #setup failOver curl --location --request POST "https://api.${NETMAKER_BASE_DOMAIN}/api/v1/node/${NODE_ID}/failover" --header "Authorization: Bearer ${MASTER_KEY}"