4 echo "This is to deploy the AI-ML framework training host and then add a notebook and sample data for a training test"
8 echo "Usage: $0 target-ip private-key-file-path"
12 # pick up the input parameters from command line
16 # copy over the deploy.sh to remote
17 scp -o StrictHostKeyChecking=no -i $KEYFILE -q deploy.sh root@${IP}:~
18 scp -o StrictHostKeyChecking=no -i $KEYFILE -q cell.json root@${IP}:~
19 scp -o StrictHostKeyChecking=no -i $KEYFILE -q insert.py root@${IP}:~
21 # copy remote IP to the hosts.yaml file
22 echo "${IP}" >> hosts.yaml
24 # kick start the installation on remote
25 ansible-playbook -b -v -i hosts.yaml --become --private-key $KEYFILE cluster.yaml