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
|
||||
else
|
||||
echo " "
|
||||
echo -n "init as xmaster? type yes: "
|
||||
read -r init_as_xmaster
|
||||
echo -n "init as master? type yes: "
|
||||
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 -n "export NODE_TYPE=master" | tee $WA_REPO/node_type.sh
|
||||
NODE_TYPE=master
|
||||
|
|
@ -177,10 +176,10 @@ fi
|
|||
echo " "
|
||||
echo -n "ready to set-up K8s? type yes: "
|
||||
read -r ready_to_setup_k8s
|
||||
|
||||
if [ "$ready_to_setup_k8s" = "yes" ]; then
|
||||
|
||||
|
||||
if [ "$NODE_TYPE" == "master" ]; then
|
||||
if [ "$NODE_TYPE" = "master" ]; then
|
||||
echo "<=><=><=><=><=><=><=><=><=><=><=><=><=><=><=><=>"
|
||||
echo "initializing K8s Master Set-Up"
|
||||
source $WA_REPO/shared_resources_k8s/k8s/setup_master.sh
|
||||
|
|
|
|||
Loading…
Reference in New Issue