Commit 25f94f56 by John Jarvis

renaming params and setting migrate option

parent 980ca9d0
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
# that are tagged with Name: <environment>-<deployment>-<play> # that are tagged with Name: <environment>-<deployment>-<play>
if [[ if [[
-z $WORKSPACE || -z $WORKSPACE ||
-z $environment || -z $environment_tag ||
-z $deployment || -z $deployment_tag ||
-z $play || -z $play_tag ||
-z $ansible_play || -z $ansible_play ||
-z $elb_pre_post || -z $elb_pre_post ||
-z $first_in || -z $first_in ||
-z $serial_count -z $serial_count
]]; then ]]; then
echo "Environment incorrect for this wrapper script" echo "Environment incorrect for this wrapper script"
...@@ -27,11 +27,14 @@ if [ ! -z "$extra_vars" ]; then ...@@ -27,11 +27,14 @@ if [ ! -z "$extra_vars" ]; then
ansible_extra_vars+=" -e $extra_vars" ansible_extra_vars+=" -e $extra_vars"
fi fi
if [[ $run_migrations == "true" ]]; then
ansible_extra_vars+=" -e migrate_db=yes"
fi
if [[ $first_in == "true" ]]; then if [[ $first_in == "true" ]]; then
$ansible_limit+="first_in_" $ansible_limit+="first_in_"
fi fi
ansible_limit="tag_Name_${environment_tag}-${deployment_tag}-${play_tag}"
ansible_limit="tag_Name_${environment}-${deployment}-${play}"
export PYTHONUNBUFFERED=1 export PYTHONUNBUFFERED=1
env env
ansible-playbook -v -u ubuntu $ansible_play -i ./ec2.py --limit $ansible_limit -e@"$WORKSPACE/configuration-secure/ansible/vars/${deployment}.yml" -e@"$WORKSPACE/configuration-secure/ansible/vars/${environment}-${deployment}.yml" $ansible_extra_vars ansible-playbook -v -u ubuntu $ansible_play -i ./ec2.py --limit $ansible_limit -e@"$WORKSPACE/configuration-secure/ansible/vars/${deployment}.yml" -e@"$WORKSPACE/configuration-secure/ansible/vars/${environment}-${deployment}.yml" $ansible_extra_vars
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