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
9e052d4f
Commit
9e052d4f
authored
Jul 22, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder xml imports so that migrations run first.
parent
8c9132b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
playbooks/roles/edxapp/tasks/deploy.yml
+27
-27
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
9e052d4f
...
...
@@ -253,33 +253,6 @@
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# The next few tasks install xml courses.
# Install the xml courses from an s3 bucket
-
name
:
get s3 one time url
s3
:
>
bucket="{{ EDXAPP_XML_S3_BUCKET }}"
object="{{ EDXAPP_XML_S3_KEY }}"
mode="geturl"
expiration=300
when
:
not EDXAPP_XML_FROM_GIT and EDXAPP_XML_S3_BUCKET and EDXAPP_XML_S3_KEY
register
:
s3_one_time_url
-
name
:
download from one time url
get_url
:
url="{{ s3_one_time_url.url }}" dest="/tmp/{{ EDXAPP_XML_S3_KEY|basename }}"
when
:
not EDXAPP_XML_FROM_GIT and EDXAPP_XML_S3_BUCKET and EDXAPP_XML_S3_KEY
register
:
download_xml_s3
-
name
:
unzip the data to the data dir
shell
:
>
tar xzf /tmp/{{ EDXAPP_XML_S3_KEY|basename }}
chdir="{{ edxapp_data_dir }}"
when
:
download_xml_s3.changed
-
include
:
xml.yml
tags
:
deploy
when
:
EDXAPP_XML_FROM_GIT
# The next few tasks set up the python code sandbox
# need to disable this profile, otherwise the pip inside the sandbox venv has no permissions
...
...
@@ -360,6 +333,29 @@
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
# The next few tasks install xml courses.
# Install the xml courses from an s3 bucket
-
name
:
get s3 one time url
s3
:
>
bucket="{{ EDXAPP_XML_S3_BUCKET }}"
object="{{ EDXAPP_XML_S3_KEY }}"
mode="geturl"
expiration=300
when
:
not EDXAPP_XML_FROM_GIT and EDXAPP_XML_S3_BUCKET and EDXAPP_XML_S3_KEY
register
:
s3_one_time_url
-
name
:
download from one time url
get_url
:
url="{{ s3_one_time_url.url }}" dest="/tmp/{{ EDXAPP_XML_S3_KEY|basename }}"
when
:
not EDXAPP_XML_FROM_GIT and EDXAPP_XML_S3_BUCKET and EDXAPP_XML_S3_KEY
register
:
download_xml_s3
-
name
:
unzip the data to the data dir
shell
:
>
tar xzf /tmp/{{ EDXAPP_XML_S3_KEY|basename }}
chdir="{{ edxapp_data_dir }}"
when
:
download_xml_s3.changed
# creates the supervisor jobs for the
# service variants configured, runs
# gather_assets and db migrations
...
...
@@ -368,6 +364,10 @@
-
service_variant_config
-
deploy
-
include
:
xml.yml
tags
:
deploy
when
:
EDXAPP_XML_FROM_GIT
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
# the services if any of the configurations
...
...
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