Commit 9984a995 by John Jarvis

use edx_internal var

parent 2382ea4c
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
ENABLE_DATADOG: True ENABLE_DATADOG: True
ENABLE_SPLUNKFORWARDER: False ENABLE_SPLUNKFORWARDER: False
ENABLE_NEWRELIC: False ENABLE_NEWRELIC: False
public_ami: True edx_internal: False
roles: roles:
- aws - aws
- role: nginx - role: nginx
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
- elasticsearch - elasticsearch
- forum - forum
- { role: "xqueue", update_users: True } - { role: "xqueue", update_users: True }
- { role: xserver, when: not public_ami } - { role: xserver, when: edx_internal }
- ora - ora
- discern - discern
- certs - certs
......
...@@ -43,11 +43,11 @@ fi ...@@ -43,11 +43,11 @@ fi
extra_vars_file="/var/tmp/extra-vars-$$.yml" extra_vars_file="/var/tmp/extra-vars-$$.yml"
if [[ $public_ami == "true" ]]; then if [[ $edx_internal == "true" ]]; then
# if this is a public server do not include
# the secret var file
extra_var_arg="-e@${extra_vars_file} -e@${WORKSPACE}/configuration-secure/ansible/vars/developer-sandbox.yml" extra_var_arg="-e@${extra_vars_file} -e@${WORKSPACE}/configuration-secure/ansible/vars/developer-sandbox.yml"
else else
# if this is a public server do not include
# the secret var file
extra_var_arg="-e@${extra_vars_file}" extra_var_arg="-e@${extra_vars_file}"
fi fi
...@@ -113,18 +113,10 @@ EOF ...@@ -113,18 +113,10 @@ EOF
if [[ $basic_auth == "true" ]]; then if [[ $basic_auth == "true" ]]; then
if [[ $public_ami == "true" ]]; then cat << EOF_AUTH >> $extra_vars_file
cat << EOF_AUTH >> $extra_vars_file
NGINX_HTPASSWD_USER: edx
NGINX_HTPASSWD_PASS: edx
EOF_AUTH
else
# vars specific to provisioning added to $extra-vars
cat << EOF_AUTH >> $extra_vars_file
NGINX_HTPASSWD_USER: $auth_user NGINX_HTPASSWD_USER: $auth_user
NGINX_HTPASSWD_PASS: $auth_pass NGINX_HTPASSWD_PASS: $auth_pass
EOF_AUTH EOF_AUTH
fi
fi fi
...@@ -152,11 +144,11 @@ rabbitmq_refresh: True ...@@ -152,11 +144,11 @@ rabbitmq_refresh: True
elb: $elb elb: $elb
EOF EOF
if [[ $public_ami != "true" ]]; then if [[ $edx_internal == "true" ]]; then
# if this isn't a public server add the github # if this isn't a public server add the github
# user and set public_ami to false # user and set public_ami to false
cat << EOF >> $extra_vars_file cat << EOF >> $extra_vars_file
public_ami: False edx_internal: False
COMMON_USER_INFO: COMMON_USER_INFO:
- name: ${github_username} - name: ${github_username}
github: true github: true
......
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