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
40de88e0
Commit
40de88e0
authored
Apr 17, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a utility play to update the ora2 version installed for edxapp
parent
f80acebb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
playbooks/edx-east/ora2.yml
+47
-0
No files found.
playbooks/edx-east/ora2.yml
0 → 100644
View file @
40de88e0
# Deploy a specific version of edx-ora2 and re-run migrations
# edx-ora2 is already included in the requirements for edx-platform,
# but we need to override that version when deploying to
# the continuous integration server for testing ora2 changes.
-
name
:
Update edx-ora2
hosts
:
all
sudo
:
True
gather_facts
:
True
vars
:
-
edxapp_venv_dir
:
"
/edx/app/edxapp/venvs/edxapp"
-
edxapp_code_dir
:
"
/edx/app/edxapp/edx-platform"
-
edxapp_deploy_path
:
"
{{
edxapp_venv_dir
}}/bin:{{
edxapp_code_dir
}}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
-
edxapp_user
:
"
edxapp"
-
edxapp_mysql_user
:
"
migrate"
-
edxapp_mysql_password
:
"
password"
-
supervisorctl_path
:
"
/edx/bin/supervisorctl"
-
ora2_version
:
"
master"
-
ora2_pip_req
:
"
git+https://github.com/edx/edx-ora2.git@{{
ora2_version
}}#egg=edx-ora2"
tasks
:
-
name
:
install edx-ora2
shell
:
>
{{ edxapp_venv_dir }}/bin/pip install -e {{ ora2_pip_req }}
chdir={{ edxapp_code_dir }}
environment
:
PATH
:
"
{{
edxapp_deploy_path
}}"
sudo_user
:
"
{{
edxapp_user
}}"
notify
:
-
"
restart
edxapp"
-
name
:
syncdb and migrate
shell
:
>
{{ edxapp_venv_dir }}/bin/python manage.py lms syncdb --migrate --noinput --settings=aws_migrate
chdir={{ edxapp_code_dir }}
environment
:
DB_MIGRATION_USER
:
"
{{
edxapp_mysql_user
}}"
DB_MIGRATION_PASS
:
"
{{
edxapp_mysql_password
}}"
notify
:
-
"
restart
edxapp"
handlers
:
-
name
:
restart edxapp
shell
:
"
{{
supervisorctl_path
}}
restart
edxapp:{{
item
}}"
with_items
:
-
lms
-
cms
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