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
9d221af0
Commit
9d221af0
authored
Dec 16, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only download ora when it hasn't already been downloaded
parent
debdb86a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
15 deletions
+6
-15
playbooks/roles/discern/tasks/deploy.yml
+3
-2
playbooks/roles/ora/tasks/ease.yml
+3
-13
No files found.
playbooks/roles/discern/tasks/deploy.yml
View file @
9d221af0
...
...
@@ -41,7 +41,7 @@
-
deploy
#Numpy has to be a pre-requirement in order for scipy to build
-
name
:
install python pre-requirements for discern and ease
-
name
:
discern |
install python pre-requirements for discern and ease
pip
:
requirements={{item}} virtualenv={{ discern_venv_dir }} state=present
sudo_user
:
"
{{
discern_user
}}"
notify
:
...
...
@@ -52,7 +52,7 @@
tags
:
-
deploy
-
name
:
install python requirements for discern and ease
-
name
:
discern |
install python requirements for discern and ease
pip
:
requirements={{item}} virtualenv={{ discern_venv_dir }} state=present
sudo_user
:
"
{{
discern_user
}}"
notify
:
...
...
@@ -75,6 +75,7 @@
-
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
sudo_user
:
"
{{
discern_user
}}"
notify
:
-
discern | restart discern
...
...
playbooks/roles/ora/tasks/ease.yml
View file @
9d221af0
...
...
@@ -48,20 +48,10 @@
tags
:
-
deploy
#Needed for the ease package to work
-
name
:
ora | check for the existence of nltk data taggers/maxent_treebank_pos_tagger/english.pickle
shell
:
"
[
-f
{{
ora_nltk_data_dir
}}/taggers/maxent_treebank_pos_tagger/english.pickle
]
&&
echo
'Found'
||
echo
''"
register
:
ora_nltk_data_installed
notify
:
-
ora | restart ora
-
ora | restart ora_celery
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"
when
:
ora_nltk_data_installed.stdout != "Found"
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
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