From a30cb1a938df0340d13039afa9cffbec63f8a559 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 10 Apr 2020 09:49:38 +0200 Subject: [PATCH] Try to wire up kombu amqp driver --- ansible/templates/alerta.conf | 2 +- ansible/templates/alertad.conf | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/templates/alerta.conf b/ansible/templates/alerta.conf index 0c14f14..7fab319 100644 --- a/ansible/templates/alerta.conf +++ b/ansible/templates/alerta.conf @@ -7,7 +7,7 @@ sslverify = False timezone = Europe/London [alerta-mailer] -amqp_url = "{{ db_type }}://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}" +amqp_url = "{{ db_type }}://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}/kombu" debug = True email_type = text endpoint = http://localhost:8080 diff --git a/ansible/templates/alertad.conf b/ansible/templates/alertad.conf index c43df2c..d820333 100644 --- a/ansible/templates/alertad.conf +++ b/ansible/templates/alertad.conf @@ -60,6 +60,9 @@ PLUGINS = [ "reject", ] +AMQP_URL = "{{ db_type }}://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}/kombu" +AMQP_TOPIC = "notify" + DATABASE_URL = "{{ db_type }}://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}/{{ db_name }}" DATABASE_NAME = "{{ db_name }}"