X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=XTesting%2Faiml-fw%2Fdeploy-aiml-thost.sh;fp=XTesting%2Faiml-fw%2Fdeploy-aiml-thost.sh;h=edcf55ce2cef85e273f0bffbb783aed542972160;hb=041f33871b8a86335388a76914844316cfbff998;hp=0000000000000000000000000000000000000000;hpb=9156905437b53b429d6ee8d2cbf45d44592918b8;p=it%2Ftest.git diff --git a/XTesting/aiml-fw/deploy-aiml-thost.sh b/XTesting/aiml-fw/deploy-aiml-thost.sh new file mode 100755 index 0000000..edcf55c --- /dev/null +++ b/XTesting/aiml-fw/deploy-aiml-thost.sh @@ -0,0 +1,23 @@ +#! /bin/bash +set -x + +echo "This is to deploy the AI-ML framework training host" + +if [ $# -lt 2 ] +then + echo "Usage: $0 target-ip private-key-file-path" + exit 1 +fi + +# pick up the input parameters from command line +IP=$1 +KEYFILE=$2 + +# copy over the deploy.sh to remote +scp -o StrictHostKeyChecking=no -i $KEYFILE -q deploy.sh root@${IP}:~ + +# copy remote IP to the hosts.yaml file +echo "${IP}" >> hosts.yaml + +# kick start the installation on remote +ansible-playbook -b -v -i hosts.yaml --become --private-key $KEYFILE cluster.yaml