Skip to content

Commit 343e724

Browse files
committed
Adding note to README to note that the template merges env vars with defaults
1 parent b2b367a commit 343e724

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ celery_app
2525
celery_user
2626
celery_services
2727
```
28+
celery_services should be a dict that contains the name of the service and any environment variables necessary in addition to {{celeryd_default_env}}. The template merges the two dictionaries if additional environment variables are defined.
29+
2830
Dependencies
2931
------------
3032
Python2.7+
@@ -44,17 +46,8 @@ An example of how to use the role
4446
celery_user: celery
4547
celery_services:
4648
- name: celeryd
47-
environment:
48-
CELERYD_LOG_FILE: "/var/log/celery/%n%I.log"
49-
CELERYD_PID_FILE: "/var/run/celery/%n.pid"
50-
CELERY_APP: "{{celery_app}}"
51-
CELERY_BIN: "{{celery_bin}}"
5249
- name: celery_beat
5350
environment:
54-
CELERYD_LOG_FILE: "/var/log/celery/%n%I.log"
55-
CELERYD_PID_FILE: "/var/run/celery/%n.pid"
56-
CELERY_APP: "{{celery_app}}"
57-
CELERY_BIN: "{{celery_bin}}"
5851
SINGLE_BEAT_IDENTIFIER: celery-beat
5952
SINGLE_BEAT_LOCK_TIME: 300
6053
role:

0 commit comments

Comments
 (0)