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
7d6f9e6a
Commit
7d6f9e6a
authored
Aug 14, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to redirect the supervisor logs.
parent
ea2036ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
4 deletions
+21
-4
playbooks/roles/notifier/tasks/main.yml
+9
-0
playbooks/roles/notifier/templates/etc/supervisor/conf.d/notifier-celery-beat.conf.j2
+5
-2
playbooks/roles/notifier/templates/etc/supervisor/conf.d/notifier-celery-workers.conf.j2
+5
-2
playbooks/roles/notifier/vars/main.yml
+2
-0
No files found.
playbooks/roles/notifier/tasks/main.yml
View file @
7d6f9e6a
...
...
@@ -141,6 +141,15 @@
-
install
-
update
-
name
:
common | create supervisor log directoy
file
:
path={{notifier_supervisor_log_dest }} mode=2750 state=directory
tags
:
-
notifier
-
install
-
update
-
ubuntu
-
name
:
notifier | supervisord config for celery workers
template
:
src=etc/supervisor/conf.d/notifier-celery-workers.conf.j2 dest=/etc/supervisor/conf.d/notifier-celery-workers.conf
...
...
playbooks/roles/notifier/templates/etc/supervisor/conf.d/notifier-celery-beat.conf.j2
View file @
7d6f9e6a
;
; {{ ansible_managed }}
;
[program:notifier-celery-beat]
command={{ notifier_venv_dir }}/bin/python manage.py celery beat -l DEBUG
...
...
@@ -15,11 +18,11 @@ stopsignal=TERM
stopwaitsecs=10
user=notifier
redirect_stderr=false
stdout_logfile=
/tmp
/notifier-celery-beat-stdout.log
stdout_logfile=
{{ notifier_supervisor_log_dest }}
/notifier-celery-beat-stdout.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=
/tmp
/notifier-celery-beat-stderr.log
stderr_logfile=
{{notifier_supervisor_log_dest }}
/notifier-celery-beat-stderr.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
...
...
playbooks/roles/notifier/templates/etc/supervisor/conf.d/notifier-celery-workers.conf.j2
View file @
7d6f9e6a
;
; {{ ansible_managed }}
;
[program:notifier-celery-workers]
command={{ notifier_venv_dir }}/bin/python manage.py celery worker -l DEBUG
...
...
@@ -15,11 +18,11 @@ stopsignal=TERM
stopwaitsecs=10
user=notifier
redirect_stderr=false
stdout_logfile=
/tmp
/notifier-celery-workers-stdout.log
stdout_logfile=
{{notifier_supervisor_log_dest }}
/notifier-celery-workers-stdout.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=
/tmp
/notifier-celery-workers-stderr.log
stderr_logfile=
{{notifier_supervisor_log_dest }}
/notifier-celery-workers-stderr.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
...
...
playbooks/roles/notifier/vars/main.yml
View file @
7d6f9e6a
...
...
@@ -37,6 +37,8 @@ notifier_user_service_http_auth_user: "guido"
notifier_user_service_http_auth_pass
:
"
vanrossum"
notifier_celery_broker_url
:
"
django://"
notifier_supervisor_log_dest
:
"
/mnt/logs/supervisor"
notifer_requests_ca_bundle
:
"
/etc/ssl/certs/ca-certificates.crt"
notifier_debian_pkgs
:
...
...
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