diff --git a/scripts/setup.py b/scripts/setup.py new file mode 100755 index 0000000..c11db5e --- /dev/null +++ b/scripts/setup.py @@ -0,0 +1,25 @@ +import os +import sys +import subprocess + +def execStep(no, **keyargs): + + print("step :" , no) + if "command" in keyargs: + print("command :" , keyargs["command"]) + command=[] + command.append(keyargs["command"]) + if "options" in keyargs: + for option in keyargs["options"]: + command.append(option) + print("command:", command) + subprocess.run(command, shell=True) + +execStep(1, command="./clearCounter.sh" ) +execStep(1, command="export", options=["APP=kubeadm"]) +execStep(1, command="export", options=["root_password=@kubeadm6055"]) +execStep(1, command="./createVm.sh") +execStep(1, command="./createVm.sh") +execStep(1, command="./createVm.sh") +execStep(1, command="./createHostList.sh") +execStep(1, command="./multipassInstallPreRequired.sh")