Start celerybeat on the staging notif backend

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
Jeremy Cline 2017-10-31 20:21:19 +00:00
parent bb9d9dc0c8
commit a746737520
2 changed files with 25 additions and 0 deletions

View file

@ -71,3 +71,12 @@
tags:
- notifs
- notifs/backend
- name: start the FMN celerybeat service
service: name={{item}} enabled=yes state=started
with_items:
- fmn-celerybeat
tags:
- notifs
- notifs/backend
when: env == "staging"

View file

@ -182,6 +182,21 @@ config = {
"fmn.support_email": "notifications@" + domain,
# Generic stuff
{% if env == 'staging' %}
"logging": dict(
loggers=dict(
fmn={
"level": "INFO",
"propagate": False,
"handlers": ["console", "mailer"],
},
),
root={
'level': 'INFO',
'handlers': ['console', 'mailer'],
},
),
{% else %}
"logging": dict(
loggers=dict(
fmn={
@ -191,4 +206,5 @@ config = {
},
),
),
{% endif %}
}