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")