Change-Id: I603599621dcf20906280c17f5bb8001b8e455cb2
Signed-off-by: pceicicd <pekwatch746@gmail.com>
--- /dev/null
+- hosts: all
+ become: true
+ tasks:
+ - name: deploy training host
+ become: true
+ command: bash /root/deploy.sh
--- /dev/null
+#! /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
--- /dev/null
+#!/bin/bash
+set -x
+
+# pull the AI/ML framework code base
+rm -rf /aimlfw-dep
+git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/aimlfw-dep" /aimlfw-dep
+cd /aimlfw-dep
+
+bin/install_traininghost.sh 2>&1 | tee /tmp/install-thost-`echo $RANDOM`.log