Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
1f7a1aff
Unverified
Commit
1f7a1aff
authored
7 years ago
by
Joseph Mulloy
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4231 from edx/jdmulloy/ops2521/baked_config
Add baked_config.sh OPS-2521
parents
05a46e7b
c344aab3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
util/baked_config.sh
+21
-0
No files found.
util/baked_config.sh
0 → 100755
View file @
1f7a1aff
#!/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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment