diff options
author | Srdjan Grubor <sgnn7@sgnn7.org> | 2014-01-16 10:53:14 -0600 |
---|---|---|
committer | Srdjan Grubor <sgnn7@sgnn7.org> | 2014-01-16 21:46:33 -0600 |
commit | e72fbbc70cf4cca953bc06d0c03037ce4d228ab4 (patch) | |
tree | d8db6b849f6f75a39232e6b31cebfb8b881aa57b /ansible | |
parent | 24fa201ceeeaa4ddf79e6d803d8aa14a6a76a8af (diff) |
Added checking of the API key
Diffstat (limited to 'ansible')
-rwxr-xr-x | ansible/setup_dev_machine.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ansible/setup_dev_machine.sh b/ansible/setup_dev_machine.sh index 39a37a0..8526c9d 100755 --- a/ansible/setup_dev_machine.sh +++ b/ansible/setup_dev_machine.sh @@ -29,11 +29,16 @@ done echo -echo -n "Checking connectivity to machine..." +echo -n "Checking connectivity to VM/machine..." sshpass -p "${TARGET_PASS}" ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $TARGET_USER@$TARGET_IP 'uname -a' &> /dev/null echo "[OK]" + +echo -n "Checking API key..." + git ls-remote -h https://$API_KEY@github.com/endlessm/eos-sdk &> /dev/null +echo "[OK]" echo + tmp_inventory=$(mktemp) trap "rm -f $tmp_inventory" EXIT @@ -47,3 +52,5 @@ ansible-playbook -i $tmp_inventory playbooks/setup_dev_machine_root.yaml ansible-playbook -i $tmp_inventory playbooks/setup_jhbuild.yaml ansible-playbook -i $tmp_inventory playbooks/install_jhbuild_deps.yaml ansible-playbook -i $tmp_inventory playbooks/jhbuild_run.yaml --extra-vars "api_key=$API_KEY" + +echo "Repos are cloned. You should be able to run 'jhbuild build' on the target" |