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
1d88112e
Commit
1d88112e
authored
Jun 26, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebased
parent
10b129e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
4 deletions
+53
-4
playbooks/edx-west/edxapp_prod.yml
+1
-1
playbooks/roles/ora/tasks/deploy.yml
+8
-2
playbooks/roles/ora/tasks/ease.yml
+39
-1
playbooks/roles/ora/tasks/main.yml
+5
-0
No files found.
playbooks/edx-west/edxapp_prod.yml
View file @
1d88112e
# this gets all running prod webservers
#- hosts: tag_environment_prod:&tag_function_webserver
# or we can get subsets of them by name
-
hosts
:
~tag_Name_app(
10|20
)_prod
-
hosts
:
~tag_Name_app(
4
)_prod
#- hosts: ~tag_Name_app(11|21)_prod
## these are cold hosts:
#- hosts: ~tag_Name_app(12|22)_prod
...
...
playbooks/roles/ora/tasks/deploy.yml
View file @
1d88112e
-
name
:
See if edx-ora.conf is installed
shell
:
"
[
-f
/etc/init/edx-ora.conf
]
&&
echo
'Found'
||
echo
''"
register
:
edx_ora_installed
tags
:
-
ora
-
deploy
-
name
:
See if edx-ora-celery.conf is installed
shell
:
"
[
-f
/etc/init/edx-ora-celery.conf
]
&&
echo
'Found'
||
echo
''"
register
:
edx_ora_celery_installed
tags
:
-
ora
-
deploy
# Stop ora service.
-
name
:
stop edx-ora service
service
:
name=edx-ora state=stopped
when
:
edx_ora_installed == 'Found'
when
:
edx_ora_installed
.stdout
== 'Found'
tags
:
-
ora
-
deploy
-
name
:
stop edx-ora-celery service
service
:
name=edx-ora-celery state=stopped
when
:
edx_ora_celery_installed == 'Found'
when
:
edx_ora_celery_installed
.stdout
== 'Found'
tags
:
-
ora
-
deploy
...
...
playbooks/roles/ora/tasks/ease.yml
View file @
1d88112e
-
name
:
See if edx-ora.conf is installed
shell
:
"
[
-f
/etc/init/edx-ora.conf
]
&&
echo
'Found'
||
echo
''"
register
:
edx_ora_installed
tags
:
-
ora
-
deploy
-
name
:
See if edx-ora-celery.conf is installed
shell
:
"
[
-f
/etc/init/edx-ora-celery.conf
]
&&
echo
'Found'
||
echo
''"
register
:
edx_ora_celery_installed
tags
:
-
ora
-
deploy
# Stop ora service.
-
name
:
stop edx-ora service
service
:
name=edx-ora state=stopped
when
:
edx_ora_installed.stdout == 'Found'
tags
:
-
ora
-
deploy
-
name
:
stop edx-ora-celery service
service
:
name=edx-ora-celery state=stopped
when
:
edx_ora_celery_installed.stdout == 'Found'
tags
:
-
ora
-
deploy
# Do A Checkout
-
name
:
git checkout ease repo into its base dir
...
...
@@ -44,8 +73,17 @@
-
deploy
#Needed for the ease package to work
-
name
:
check for the existence of nltk data taggers/maxent_treebank_pos_tagger/english.pickle
shell
:
"
[
-f
{{nltk_data_dir}}/taggers/maxent_treebank_pos_tagger/english.pickle
]
&&
echo
'Found'
||
echo
''"
register
:
nltk_data_installed
tags
:
-
ease
-
deploy
-
name
:
install nltk data using rendered shell script
shell
:
command="{{venv_dir}}/bin/python -m nltk.downloader -d {{nltk_data_dir}} all"
command
:
"
{{venv_dir}}/bin/python
-m
nltk.downloader
-d
{{nltk_data_dir}}
all"
when
:
nltk_data_installed.stdout != "Found"
tags
:
-
ease
-
deploy
...
...
playbooks/roles/ora/tasks/main.yml
View file @
1d88112e
...
...
@@ -8,6 +8,11 @@
tags
:
-
ora
-
name
:
Create ml_models directory
file
:
path={{ app_base_dir }}/ml_models state=directory owner=www-data group=www-data
tags
:
-
ora
# Check out ora repo to $app_base_dir
-
name
:
install git and its recommends
apt
:
pkg=git state=present install_recommends=yes
...
...
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