Commit d0b8511a by John Jarvis

Merge pull request #635 from edx/jarv/show-extra-vars

always show extra vars
parents 80e421de 9e0d18c8
...@@ -85,7 +85,7 @@ ssh-keygen -f "/var/lib/jenkins/.ssh/known_hosts" -R "$deploy_host" ...@@ -85,7 +85,7 @@ ssh-keygen -f "/var/lib/jenkins/.ssh/known_hosts" -R "$deploy_host"
if [[ -z $WORKSPACE ]]; then if [[ -z $WORKSPACE ]]; then
dir=$(dirname $0) dir=$(dirname $0)
source "$dir/ascii-convert.sh" source "$dir/create-var-file.sh"
else else
source "$WORKSPACE/util/jenkins/create-var-file.sh" source "$WORKSPACE/util/jenkins/create-var-file.sh"
fi fi
...@@ -122,8 +122,8 @@ GH_USERS_PROMPT: '[$name_tag] ' ...@@ -122,8 +122,8 @@ GH_USERS_PROMPT: '[$name_tag] '
elb: $elb elb: $elb
EOF EOF
cat $extra_vars
# run the tasks to launch an ec2 instance from AMI # run the tasks to launch an ec2 instance from AMI
cat $extra_vars
ansible-playbook edx_provision.yml -i inventory.ini -e "@${extra_vars}" --user ubuntu ansible-playbook edx_provision.yml -i inventory.ini -e "@${extra_vars}" --user ubuntu
if [[ $server_type == "full_edx_installation" ]]; then if [[ $server_type == "full_edx_installation" ]]; then
...@@ -147,12 +147,14 @@ deploy[certs]=$certs ...@@ -147,12 +147,14 @@ deploy[certs]=$certs
# If reconfigure was selected run non-deploy tasks for all roles # If reconfigure was selected run non-deploy tasks for all roles
if [[ $reconfigure == "true" ]]; then if [[ $reconfigure == "true" ]]; then
cat $extra_vars
ansible-playbook edx_continuous_integration.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu --skip-tags deploy ansible-playbook edx_continuous_integration.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu --skip-tags deploy
fi fi
# Run deploy tasks for the roles selected # Run deploy tasks for the roles selected
for i in "${!deploy[@]}"; do for i in "${!deploy[@]}"; do
if [[ ${deploy[$i]} == "true" ]]; then if [[ ${deploy[$i]} == "true" ]]; then
cat $extra_vars
ansible-playbook ${i}.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu --tags deploy ansible-playbook ${i}.yml -i "${deploy_host}," -e "@${extra_vars}" --user ubuntu --tags deploy
fi fi
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment