Browse Source

set failover

abhishek9686 8 months ago
parent
commit
d1a9fa92da
1 changed files with 5 additions and 1 deletions
  1. 5 1
      scripts/nm-quick.sh

+ 5 - 1
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
 }