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
1433a5ab
Commit
1433a5ab
authored
Oct 31, 2013
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
supervisor-ora: Rename service names & config from `edx-ora` to `ora`
parent
28fbbd18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
32 deletions
+41
-32
playbooks/roles/ora/handlers/main.yml
+13
-4
playbooks/roles/ora/tasks/deploy.yml
+28
-28
playbooks/roles/ora/templates/ora.conf.j2
+0
-0
playbooks/roles/ora/templates/ora_celery.conf.j2
+0
-0
No files found.
playbooks/roles/ora/handlers/main.yml
View file @
1433a5ab
---
-
name
:
ora | restart edx-ora
service
:
name=edx-ora state=restarted
-
name
:
ora | restart edx-ora-celery
service
:
name=edx-ora-celery state=restarted
-
name
:
ora | restart ora
supervisorctl
:
>
name=ora
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=restarted
-
name
:
ora | restart ora_celery
supervisorctl
:
>
name=ora_celery
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=restarted
playbooks/roles/ora/tasks/deploy.yml
View file @
1433a5ab
-
include
:
ease.yml
-
name
:
ora | See if
edx-ora.conf
is installed
shell
:
"
[
-f
/etc/init/edx-
ora.conf
]
&&
echo
'Found'
||
echo
''"
register
:
edx_
ora_installed
-
name
:
ora | See if
supervisord config file `ora.conf`
is installed
shell
:
"
[
-f
{{
supervisor_cfg_dir
}}/
ora.conf
]
&&
echo
'Found'
||
echo
''"
register
:
ora_installed
tags
:
-
deploy
-
name
:
ora | See if
edx-ora-celery.conf
is installed
shell
:
"
[
-f
/etc/init/edx-ora-
celery.conf
]
&&
echo
'Found'
||
echo
''"
register
:
edx_
ora_celery_installed
-
name
:
ora | See if
supervisord `ora_celery.conf`
is installed
shell
:
"
[
-f
{{
supervisor_cfg_dir
}}/ora_
celery.conf
]
&&
echo
'Found'
||
echo
''"
register
:
ora_celery_installed
tags
:
-
deploy
# Stop ora service.
-
name
:
ora | stop
edx-
ora service
-
name
:
ora | stop ora service
service
:
name=edx-ora state=stopped
when
:
edx_
ora_installed.stdout == 'Found'
notify
:
ora | restart
edx-
ora
when
:
ora_installed.stdout == 'Found'
notify
:
ora | restart ora
tags
:
-
deploy
-
name
:
ora | stop
edx-ora-
celery service
service
:
name=
edx-ora-
celery state=stopped
when
:
edx_
ora_celery_installed.stdout == 'Found'
notify
:
ora | restart
edx-ora-
celery
-
name
:
ora | stop
ora_
celery service
service
:
name=
ora_
celery state=stopped
when
:
ora_celery_installed.stdout == 'Found'
notify
:
ora | restart
ora_
celery
tags
:
-
deploy
...
...
@@ -41,12 +41,12 @@
-
deploy
-
name
:
ora | create ora upstart script
template
:
src=
edx-ora.conf.j2 dest=/etc/init/edx-
ora.conf
template
:
src=
ora.conf.j2 dest=/etc/init/
ora.conf
tags
:
-
deploy
-
name
:
ora | create ora
-
celery upstart script
template
:
src=
edx-ora-celery.conf.j2 dest=/etc/init/edx-ora-
celery.conf
-
name
:
ora | create ora
_
celery upstart script
template
:
src=
ora_celery.conf.j2 dest=/etc/init/ora_
celery.conf
tags
:
-
deploy
...
...
@@ -55,8 +55,8 @@
git
:
dest={{ ora_code_dir }} repo={{ ora_source_repo }} version={{ ora_version }}
sudo_user
:
"
{{
ora_user
}}"
notify
:
-
ora | restart
edx-
ora
-
ora | restart
edx-ora-
celery
-
ora | restart ora
-
ora | restart
ora_
celery
tags
:
-
deploy
...
...
@@ -69,8 +69,8 @@
pip
:
requirements="{{ ora_pre_requirements_file }}" virtualenv="{{ ora_venv_dir }}" state=present
sudo_user
:
"
{{
ora_user
}}"
notify
:
-
ora | restart
edx-
ora
-
ora | restart
edx-ora-
celery
-
ora | restart ora
-
ora | restart
ora_
celery
tags
:
-
deploy
...
...
@@ -79,8 +79,8 @@
pip
:
requirements="{{ ora_post_requirements_file }}" virtualenv="{{ ora_venv_dir }}" state=present
sudo_user
:
"
{{
ora_user
}}"
notify
:
-
ora | restart
edx-
ora
-
ora | restart
edx-ora-
celery
-
ora | restart ora
-
ora | restart
ora_
celery
tags
:
-
deploy
...
...
@@ -88,8 +88,8 @@
-
name
:
ora | change memory commit settings -- needed for redis
command
:
sysctl vm.overcommit_memory=1
notify
:
-
ora | restart
edx-
ora
-
ora | restart
edx-ora-
celery
-
ora | restart ora
-
ora | restart
ora_
celery
tags
:
-
deploy
...
...
@@ -98,8 +98,8 @@
when
:
migrate_db is defined and migrate_db|lower == "yes"
sudo_user
:
"
{{
ora_user
}}"
notify
:
-
ora | restart
edx-
ora
-
ora | restart
edx-ora-
celery
-
ora | restart ora
-
ora | restart
ora_
celery
tags
:
-
deploy
...
...
@@ -107,7 +107,7 @@
shell
:
SERVICE_VARIANT=ora {{ora_venv_dir}}/bin/django-admin.py update_users --settings=edx_ora.aws --pythonpath={{ora_code_dir}}
sudo_user
:
"
{{
ora_user
}}"
notify
:
-
ora | restart
edx-
ora
-
ora | restart
edx-ora-
celery
-
ora | restart ora
-
ora | restart
ora_
celery
tags
:
-
deploy
playbooks/roles/ora/templates/
edx-
ora.conf.j2
→
playbooks/roles/ora/templates/ora.conf.j2
View file @
1433a5ab
File moved
playbooks/roles/ora/templates/
edx-ora-
celery.conf.j2
→
playbooks/roles/ora/templates/
ora_
celery.conf.j2
View file @
1433a5ab
File moved
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