commit by to_remotes 2023-10-05 09:28:32 +0200 from vmdevac
parent
8925fc1852
commit
b87d9914d7
11
init.sh
11
init.sh
|
|
@ -157,12 +157,11 @@ if [ -f $WA_REPO/node_type.sh ]; then
|
||||||
source $WA_REPO/node_type.sh
|
source $WA_REPO/node_type.sh
|
||||||
else
|
else
|
||||||
echo " "
|
echo " "
|
||||||
echo -n "init as xmaster? type yes: "
|
echo -n "init as master? type yes: "
|
||||||
read -r init_as_xmaster
|
read -r init_as_master
|
||||||
|
|
||||||
echo "init as master set to $init_as_xmaster"
|
|
||||||
|
|
||||||
if [ "$init_as_xmaster" = "yes" ]; then
|
if [ "$init_as_master" = "yes" ]; then
|
||||||
echo "node type set to master"
|
echo "node type set to master"
|
||||||
echo -n "export NODE_TYPE=master" | tee $WA_REPO/node_type.sh
|
echo -n "export NODE_TYPE=master" | tee $WA_REPO/node_type.sh
|
||||||
NODE_TYPE=master
|
NODE_TYPE=master
|
||||||
|
|
@ -177,10 +176,10 @@ fi
|
||||||
echo " "
|
echo " "
|
||||||
echo -n "ready to set-up K8s? type yes: "
|
echo -n "ready to set-up K8s? type yes: "
|
||||||
read -r ready_to_setup_k8s
|
read -r ready_to_setup_k8s
|
||||||
|
|
||||||
if [ "$ready_to_setup_k8s" = "yes" ]; then
|
if [ "$ready_to_setup_k8s" = "yes" ]; then
|
||||||
|
|
||||||
|
if [ "$NODE_TYPE" = "master" ]; then
|
||||||
if [ "$NODE_TYPE" == "master" ]; then
|
|
||||||
echo "<=><=><=><=><=><=><=><=><=><=><=><=><=><=><=><=>"
|
echo "<=><=><=><=><=><=><=><=><=><=><=><=><=><=><=><=>"
|
||||||
echo "initializing K8s Master Set-Up"
|
echo "initializing K8s Master Set-Up"
|
||||||
source $WA_REPO/shared_resources_k8s/k8s/setup_master.sh
|
source $WA_REPO/shared_resources_k8s/k8s/setup_master.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue