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
f54c73d2
Commit
f54c73d2
authored
Jul 23, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1333 from edx/feanil/xml_updates
Feanil/xml updates
parents
8c9132b4
b3114178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
27 deletions
+30
-27
playbooks/roles/edxapp/tasks/deploy.yml
+30
-27
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
f54c73d2
...
@@ -253,33 +253,6 @@
...
@@ -253,33 +253,6 @@
-
"
restart
edxapp"
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
-
"
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
# 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
# need to disable this profile, otherwise the pip inside the sandbox venv has no permissions
...
@@ -360,6 +333,32 @@
...
@@ -360,6 +333,32 @@
-
"
restart
edxapp"
-
"
restart
edxapp"
-
"
restart
edxapp_workers"
-
"
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=30
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="{{ edxapp_data_dir }}/{{ EDXAPP_XML_S3_KEY|basename }}"
mode=0600
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 {{ edxapp_data_dir }}/{{ EDXAPP_XML_S3_KEY|basename }}
chdir="{{ edxapp_data_dir }}"
when
:
download_xml_s3.changed
# creates the supervisor jobs for the
# creates the supervisor jobs for the
# service variants configured, runs
# service variants configured, runs
# gather_assets and db migrations
# gather_assets and db migrations
...
@@ -368,6 +367,10 @@
...
@@ -368,6 +367,10 @@
-
service_variant_config
-
service_variant_config
-
deploy
-
deploy
-
include
:
xml.yml
tags
:
deploy
when
:
EDXAPP_XML_FROM_GIT
# call supervisorctl update. this reloads
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
# the supervisorctl config and restarts
# the services if any of the configurations
# 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