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
d080287d
Commit
d080287d
authored
Dec 16, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #550 from edx/jarv/ora-download
only download ora when it hasn't already been downloaded
parents
debdb86a
9ecc9cff
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
22 deletions
+10
-22
playbooks/roles/common/defaults/main.yml
+4
-0
playbooks/roles/discern/tasks/deploy.yml
+3
-2
playbooks/roles/edxapp/defaults/main.yml
+0
-3
playbooks/roles/forum/defaults/main.yml
+0
-4
playbooks/roles/ora/tasks/ease.yml
+3
-13
No files found.
playbooks/roles/common/defaults/main.yml
View file @
d080287d
...
...
@@ -44,3 +44,7 @@ common_web_group: www-data
common_log_user
:
syslog
common_git_ppa
:
"
ppa:git-core/ppa"
# Skip supervisor tasks
# Useful when supervisor is not installed (local dev)
devstack
:
False
playbooks/roles/discern/tasks/deploy.yml
View file @
d080287d
...
...
@@ -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/edxapp/defaults/main.yml
View file @
d080287d
...
...
@@ -475,6 +475,3 @@ edxapp_cms_variant: cms
# Worker Settings
worker_django_settings_module
:
'
aws'
# Skip supervisor tasks
# Useful when supervisor is not installed (local dev)
devstack
:
False
playbooks/roles/forum/defaults/main.yml
View file @
d080287d
...
...
@@ -57,7 +57,3 @@ forum_services:
-
{
service
:
"
mongo"
,
host
:
"
{{
FORUM_MONGO_HOST
}}"
,
port
:
"
28017"
}
-
{
service
:
"
elasticsearch"
,
host
:
"
{{
forum_elasticsearch_host
}}"
,
port
:
"
9200"
}
-
{
service
:
"
elasticsearch"
,
host
:
"
{{
forum_elasticsearch_host
}}"
,
port
:
"
9300"
}
# Skip supervisor tasks
# Used in local dev where supervisor isn't installed
devstack
:
False
playbooks/roles/ora/tasks/ease.yml
View file @
d080287d
...
...
@@ -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