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
OpenEdx
configuration
Commits
b9fd64e3
Commit
b9fd64e3
authored
8 years ago
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ansible unbuffered for better experience while logging
parent
6b74f621
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
util/vagrant/upgrade.sh
+10
-12
No files found.
util/vagrant/upgrade.sh
View file @
b9fd64e3
...
...
@@ -168,6 +168,12 @@ if [[ -f ${OPENEDX_ROOT}/app/edx_ansible/server-vars.yml ]]; then
SERVER_VARS
=
"--extra-vars=
\"
@
${
OPENEDX_ROOT
}
/app/edx_ansible/server-vars.yml
\"
"
fi
# When tee'ing to a log, ansible (like many programs) buffers its output. This
# makes it hard to tell what is actually happening during the upgrade.
# "stdbuf -oL" will run ansible with line-buffered stdout, which makes the
# messages scroll in the way people expect.
ANSIBLE_PLAYBOOK
=
"sudo stdbuf -oL ansible-playbook --inventory-file=localhost, --connection=local "
make_config_venv
()
{
virtualenv venv
source
venv/bin/activate
...
...
@@ -209,9 +215,7 @@ EOF
echo
"Upgrading to the end of Django 1.4"
cd
configuration/playbooks/vagrant
sudo
ansible-playbook
\
--inventory-file
=
localhost,
\
--connection
=
local
\
$ANSIBLE_PLAYBOOK
\
$SERVER_VARS
\
--extra-vars
=
"edx_platform_version=release-2015-11-09"
\
--extra-vars
=
"xqueue_version=named-release/cypress"
\
...
...
@@ -229,9 +233,7 @@ EOF
echo
"Upgrading to the beginning of Django 1.8"
cd
configuration/playbooks/vagrant
sudo
ansible-playbook
\
--inventory-file
=
localhost,
\
--connection
=
local
\
$ANSIBLE_PLAYBOOK
\
$SERVER_VARS
\
--extra-vars
=
"edx_platform_version=dogwood-first-18"
\
--extra-vars
=
"xqueue_version=dogwood-first-18"
\
...
...
@@ -268,9 +270,7 @@ if [[ $TARGET == *eucalyptus* ]] ; then
echo
"Upgrade the code"
cd
configuration/playbooks/vagrant
sudo
ansible-playbook
\
--inventory-file
=
localhost,
\
--connection
=
local
\
$ANSIBLE_PLAYBOOK
\
$SERVER_VARS
\
--extra-vars
=
"edx_platform_version=
$TARGET
"
\
--extra-vars
=
"xqueue_version=
$TARGET
"
\
...
...
@@ -296,9 +296,7 @@ echo "ora2_version: $TARGET" >> vars.yml
echo
"certs_version:
$TARGET
"
>>
vars.yml
echo
"forum_version:
$TARGET
"
>>
vars.yml
echo
"xqueue_version:
$TARGET
"
>>
vars.yml
sudo
ansible-playbook
\
--inventory-file
=
localhost,
\
--connection
=
local
\
$ANSIBLE_PLAYBOOK
\
--extra-vars
=
"@vars.yml"
\
$SERVER_VARS
\
vagrant-
$CONFIGURATION
.yml
...
...
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