From 3ce87f57fd2246d858a4bed55c48dbc00c42b868 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 9 Apr 2020 20:17:01 +0200 Subject: [PATCH] Further amqp config --- ansible/templates/alerta.conf | 2 +- ansible/templates/alertad.conf | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ansible/templates/alerta.conf b/ansible/templates/alerta.conf index 6df639a..bc841e7 100644 --- a/ansible/templates/alerta.conf +++ b/ansible/templates/alerta.conf @@ -8,7 +8,7 @@ timezone = Europe/London key = {{ alerta_mailer_api_key }} mail_to = {{ mail_to }} mail_from = {{ mail_from }} -amqp_url = redis://localhost:6379/ +amqp_url = mongodb://localhost:27017/ dashboard_url = http://localhost:8000 smtp_username = {{ smtp_username }} smtp_password = {{ smtp_passwd }} diff --git a/ansible/templates/alertad.conf b/ansible/templates/alertad.conf index 7e53a8d..62e762f 100644 --- a/ansible/templates/alertad.conf +++ b/ansible/templates/alertad.conf @@ -52,7 +52,10 @@ SEVERITY_MAP = { DEFAULT_NORMAL_SEVERITY = "normal" DEFAULT_PREVIOUS_SEVERITY = "indeterminate" -PLUGINS = ["reject", "blackout", "normalise"] +PLUGINS = ["reject", "blackout", "normalise", "amqp", "mailer"] + +AMQP_URL = "mongodb://localhost:27017/kombu" +AMQP_TOPIC = "notify" DATABASE_URL = "postgres://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}/{{ db_name }}" DATABASE_NAME = "{{ db_name }}"