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
da4c7c18
Commit
da4c7c18
authored
Nov 08, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing discern service management
parent
e63109dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
36 deletions
+19
-36
playbooks/roles/devpi/tasks/main.yml
+11
-0
playbooks/roles/discern/tasks/deploy.yml
+2
-36
playbooks/roles/discern/tasks/main.yml
+6
-0
No files found.
playbooks/roles/devpi/tasks/main.yml
View file @
da4c7c18
...
...
@@ -95,6 +95,17 @@
dest={{ COMMON_CFG_DIR }}/supervisord.conf.devpi
state=link
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
# the services if any of the configurations
# have changed.
#
-
name
:
devpi | update devpi supervisor configuration
shell
:
"
{{
devpi_supervisor_ctl
}}
-c
{{
devpi_supervisor_cfg
}}
update"
register
:
supervisor_update
changed_when
:
supervisor_update.stdout != ""
tags
:
deploy
-
name
:
devpi | ensure devpi is started
supervisorctl
:
>
state=started
...
...
playbooks/roles/discern/tasks/deploy.yml
View file @
da4c7c18
...
...
@@ -107,36 +107,6 @@
tags
:
-
deploy
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
# the services if any of the configurations
# have changed.
#
# we don't use notifications for supervisor because
# they don't work well with parameterized roles.
# See https://github.com/ansible/ansible/issues/4853
-
name
:
discern | update supervisor configuration
shell
:
"
{{
supervisor_ctl
}}
-c
{{
supervisor_cfg
}}
update"
register
:
supervisor_update
sudo_user
:
"
{{
supervisor_service_user
}}"
changed_when
:
supervisor_update.stdout != ""
-
name
:
discern | ensure discern has started
supervisorctl
:
>
name=discern
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=started
sudo_user
:
"
{{
supervisor_service_user
}}"
-
name
:
discern_celery | ensure discern_celery has started
supervisorctl
:
>
name=discern_celery
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=started
sudo_user
:
"
{{
supervisor_service_user
}}"
# call supervisorctl update. this reloads
# the supervisorctl config and restarts
...
...
@@ -148,6 +118,7 @@
register
:
supervisor_update
sudo_user
:
"
{{
supervisor_service_user
}}"
changed_when
:
supervisor_update.stdout != ""
tags
:
deploy
-
name
:
discern | ensure discern, discern_celery has started
supervisorctl
:
>
...
...
@@ -158,9 +129,4 @@
with_items
:
-
discern
-
discern_celery
-
name
:
discern | create a symlink for venv python
file
:
>
src="{{ discern_venv_bin }}/python"
dest={{ COMMON_BIN_DIR }}/python.discern
state=link
tags
:
deploy
playbooks/roles/discern/tasks/main.yml
View file @
da4c7c18
...
...
@@ -54,3 +54,9 @@
-
discern | restart discern
-
include
:
deploy.yml
-
name
:
discern | create a symlink for venv python
file
:
>
src="{{ discern_venv_bin }}/python"
dest={{ COMMON_BIN_DIR }}/python.discern
state=link
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