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
8bb506d8
Commit
8bb506d8
authored
May 07, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove logic to support non s3 urls.
parent
b38d3e73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
playbooks/roles/edxapp/tasks/deploy.yml
+3
-9
No files found.
playbooks/roles/edxapp/tasks/deploy.yml
View file @
8bb506d8
...
@@ -262,21 +262,15 @@
...
@@ -262,21 +262,15 @@
register
:
s3_one_time_url
register
:
s3_one_time_url
-
name
:
download from one time url
-
name
:
download from one time url
get_url
:
url="{{ s3_one_time_url.s3_url }}" dest="/
var/tmp/xml_coursedata.tar.gz
"
get_url
:
url="{{ s3_one_time_url.s3_url }}" dest="/
tmp/{{ EDXAPP_XML_S3_KEY|basename }}
"
when
:
not EDXAPP_XML_FROM_GIT and EDXAPP_XML_S3_BUCKET and EDXAPP_XML_S3_KEY
when
:
not EDXAPP_XML_FROM_GIT and EDXAPP_XML_S3_BUCKET and EDXAPP_XML_S3_KEY
register
:
download_xml_s3
register
:
download_xml_s3
# Install the xml courses from a url.
-
name
:
download xml coursedata
get_url
:
url="{{ EDXAPP_XML_URL }}" dest="/var/tmp/xml_coursedata.tar.gz"
when
:
not EDXAPP_XML_FROM_GIT and EDXAPP_XML_URL
register
:
download_xml_url
-
name
:
unzip the data to the data dir
-
name
:
unzip the data to the data dir
shell
:
>
shell
:
>
tar xzf /
var/tmp/xml_coursedata.tar.gz
tar xzf /
tmp/{{ EDXAPP_XML_S3_KEY|basename }}
chdir="{{ edxapp_course_data_dir }}"
chdir="{{ edxapp_course_data_dir }}"
when
:
download_xml_s3.changed
or download_xml_url.changed
when
:
download_xml_s3.changed
-
include
:
xml.yml
-
include
:
xml.yml
when
:
EDXAPP_XML_FROM_GIT
when
:
EDXAPP_XML_FROM_GIT
...
...
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