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
415702a6
Commit
415702a6
authored
Nov 05, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working changes for new supervisor scheme.
parent
e95ef117
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
18 deletions
+14
-18
playbooks/roles/notifier/defaults/main.yml
+1
-2
playbooks/roles/notifier/handlers/main.yml
+0
-4
playbooks/roles/notifier/tasks/deploy.yml
+13
-12
No files found.
playbooks/roles/notifier/defaults/main.yml
View file @
415702a6
...
...
@@ -38,7 +38,7 @@ NOTIFIER_USER_SERVICE_HTTP_AUTH_USER: "guido"
NOTIFIER_USER_SERVICE_HTTP_AUTH_PASS
:
"
vanrossum"
NOTIFIER_CELERY_BROKER_URL
:
"
django://"
NOTIFIER_SUPERVISOR_LOG_DEST
:
"
{{
COMMON_DATA_DIR
}}/log
s
/supervisor"
NOTIFIER_SUPERVISOR_LOG_DEST
:
"
{{
COMMON_DATA_DIR
}}/log/supervisor"
NOTIFER_REQUESTS_CA_BUNDLE
:
"
/etc/ssl/certs/ca-certificates.crt"
...
...
@@ -53,7 +53,6 @@ notifier_debian_pkgs:
-
ipython
-
pkg-config
-
rsyslog
-
supervisor
#
# This structure is iterated over in order to build both
...
...
playbooks/roles/notifier/handlers/main.yml
View file @
415702a6
---
##
## for future compliance, when the API comes on line.
##
-
name
:
notifier | restart notifier-scheduler
supervisorctl
:
>
name=notifier-scheduler
...
...
playbooks/roles/notifier/tasks/deploy.yml
View file @
415702a6
---
-
name
:
notifier | stop notifier-celery-beat
supervisorctl
:
>
name="{{ item }}"
supervisorctl_path={{ supervisor_ctl }}
config={{ supervisor_cfg }}
state=present
ignore_errors
:
yes
sudo_user
:
"
{{
common_web_user
}}"
with_items
:
[
'
notifier-scheduler'
,
'
notifier-celery-workers'
]
tags
:
-
deploy
#
- name: notifier | stop notifier-celery-beat
#
supervisorctl: >
#
name="{{ item }}"
#
supervisorctl_path={{ supervisor_ctl }}
#
config={{ supervisor_cfg }}
#
state=present
#
ignore_errors: yes
#
sudo_user: "{{ common_web_user }}"
#
with_items: ['notifier-scheduler','notifier-celery-workers']
#
tags:
#
- deploy
-
name
:
notifier | checkout code
git
:
...
...
@@ -19,7 +19,8 @@
sudo
:
true
sudo_user
:
"
{{
NOTIFIER_USER
}}"
notify
:
-
notifier | restart notifier
-
notifier | restart notifier-scheduler
-
notifier | restart notifier-celery-workers
tags
:
-
deploy
...
...
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