summaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 10:39:47 -0600
committerSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 21:46:33 -0600
commit31234dba79ffc5baabf0371ee08b8c32df107425 (patch)
tree49b7e091fb918b24c54e55a1d2842b7617f7e963 /ansible
parent7dcd64668f108c714f5fa74529890b5c5dcbd69d (diff)
Added API key auth for jhbuild checkouts as well
Diffstat (limited to 'ansible')
-rwxr-xr-xansible/setup_dev_machine.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ansible/setup_dev_machine.sh b/ansible/setup_dev_machine.sh
index 747ecee..39a37a0 100755
--- a/ansible/setup_dev_machine.sh
+++ b/ansible/setup_dev_machine.sh
@@ -21,6 +21,12 @@ fi
read -e -p "Enter your machine's IP: " -i "$DEFAULT_IP" TARGET_IP
read -e -p "Enter your machine's user: " -i "$DEFAULT_USER" TARGET_USER
read -e -p "Enter your machine's password: " -i "${DEFAULT_PASSWORD}" TARGET_PASS
+
+API_KEY=""
+while [[ -z $API_KEY ]]; do
+ read -e -p "Enter your Github Personal Access Token (github.com/settings/applications): " -i "$API_KEY" API_KEY
+done
+
echo
echo -n "Checking connectivity to machine..."
@@ -40,4 +46,4 @@ EOF
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
+ansible-playbook -i $tmp_inventory playbooks/jhbuild_run.yaml --extra-vars "api_key=$API_KEY"