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
7e28eedf
Commit
7e28eedf
authored
Dec 18, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to s3 download for nltk
parent
3f928dbc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
10 deletions
+24
-10
playbooks/roles/discern/defaults/main.yml
+2
-0
playbooks/roles/discern/tasks/deploy.yml
+11
-6
playbooks/roles/ora/defaults/main.yml
+3
-0
playbooks/roles/ora/tasks/ease.yml
+8
-4
No files found.
playbooks/roles/discern/defaults/main.yml
View file @
7e28eedf
...
...
@@ -31,6 +31,8 @@ discern_ease_pre_requirements_file: "{{ discern_ease_code_dir }}/pre-requirement
discern_ease_post_requirements_file
:
"
{{
discern_ease_code_dir
}}/requirements.txt"
discern_nltk_data_dir
:
"
{{
discern_data_dir}}/nltk_data"
discern_nltk_download_url
:
http://edx-static.s3.amazonaws.com/nltk/nltk-data-20131113.tar.gz
discern_nltk_tmp_file
:
"
{{
ora_nltk_data_dir
}}/nltk.tmp.tar.tz"
discern_source_repo
:
https://github.com/edx/discern.git
discern_settings
:
discern.aws
...
...
playbooks/roles/discern/tasks/deploy.yml
View file @
7e28eedf
...
...
@@ -71,16 +71,21 @@
tags
:
-
deploy
#Needed for the ease package to work
-
name
:
discern | install nltk data using rendered shell script
shell
:
>
{{ discern_venv_dir }}/bin/python -m nltk.downloader -d {{ discern_nltk_data_dir }} all
creates={{ discern_nltk_data_dir }}/taggers/maxent_treebank_pos_tagger/english.pickle
-
name
:
discern | download and install nltk
shell
:
|
set -e
curl -o {{ discern_nltk_tmp_file }} {{ discern_nltk_download_url }}
tar zxf {{ discern_nltk_tmp_file }}
rm -f {{ discern_nltk_tmp_file }}
creates={{ discern_nltk_data_dir }}/taggers/maxent_treebank_pos_tagger/english.pickle
chdir={{ discern_data_dir }}
sudo_user
:
"
{{
discern_user
}}"
notify
:
-
discern | restart discern
-
discern | restart discern_celery
tags
:
-
deploy
-
deploy
#Run this instead of using the ansible module because the ansible module only support syncdb of these three, and does not
#support virtualenvs as of this comment
...
...
playbooks/roles/ora/defaults/main.yml
View file @
7e28eedf
...
...
@@ -12,6 +12,9 @@ ora_user: "ora"
ora_deploy_path
:
"
{{
ora_venv_bin
}}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ora_nltk_data_dir
:
"
{{
ora_data_dir}}/nltk_data"
ora_nltk_download_url
:
http://edx-static.s3.amazonaws.com/nltk/nltk-data-20131113.tar.gz
ora_nltk_tmp_file
:
"
{{
ora_nltk_data_dir
}}/nltk.tmp.tar.tz"
ora_source_repo
:
https://github.com/edx/edx-ora.git
ora_version
:
'
master'
ora_pre_requirements_file
:
"
{{
ora_code_dir
}}/pre-requirements.txt"
...
...
playbooks/roles/ora/tasks/ease.yml
View file @
7e28eedf
...
...
@@ -48,10 +48,14 @@
tags
:
-
deploy
-
name
:
ora | install nltk data using rendered shell script
command
:
>
"{{ora_ease_venv_dir}}/bin/python -m nltk.downloader -d {{ ora_nltk_data_dir }} all"
creates={{ ora_nltk_data_dir }}/taggers/maxent_treebank_pos_tagger/english.pickle
-
name
:
ora | download and install nltk
shell
:
|
set -e
curl -o {{ ora_nltk_tmp_file }} {{ ora_nltk_download_url }}
tar zxf {{ ora_nltk_tmp_file }}
rm -f {{ ora_nltk_tmp_file }}
creates={{ ora_nltk_data_dir }}/taggers/maxent_treebank_pos_tagger/english.pickle
chdir={{ ora_data_dir }}
sudo_user
:
"
{{
common_web_user
}}"
notify
:
-
ora | restart ora
...
...
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