Unverified Commit 1f7a1aff by Joseph Mulloy Committed by GitHub

Merge pull request #4231 from edx/jdmulloy/ops2521/baked_config

Add baked_config.sh OPS-2521
parents 05a46e7b c344aab3
#!/bin/bash
# For instructions on how to use this script see https://openedx.atlassian.net/wiki/spaces/EdxOps/pages/390627556/How+to+run+baked+config+on+your+laptop
pushd ../.. > /dev/null
WORKSPACE="$(pwd)"
popd > /dev/null
ENVIRONMENT="$(echo $1 | cut -d - -f 1 )"
DEPLOY="$(echo $1 | cut -d - -f 2 )"
E_D="${ENVIRONMENT}-${DEPLOY}"
if [ ! -e $WORKSPACE/${DEPLOY}-internal/ansible/vars/${DEPLOY}.yml ]; then
echo "Please specify a valid environment-deployment (i.e. stage-edx) as the first and only argument"
exit 1
fi
mkdir -p $WORKSPACE/baked-config-secure/${E_D}
cd ../playbooks/edx-east/
ansible-playbook -vvv -c local -i 'localhost,' --tags edxapp_cfg ./edxapp.yml -e@$WORKSPACE/${DEPLOY}-internal/ansible/vars/${DEPLOY}.yml -e@$WORKSPACE/${DEPLOY}-internal/ansible/vars/${E_D}.yml -e@$WORKSPACE/${DEPLOY}-secure/ansible/vars/${DEPLOY}.yml -e@$WORKSPACE/${DEPLOY}-secure/ansible/vars/${E_D}.yml -e edxapp_user=$(whoami) -e common_web_group=$(whoami) -e edxapp_app_dir=$WORKSPACE/baked-config-secure/${E_D} -e edxapp_code_dir=$WORKSPACE/edx-platform -e EDXAPP_CFG_DIR=$WORKSPACE/baked-config-secure/${E_D} -s --ask-sudo-pass --diff
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