From 3190f33edb5097c139876031a1fb41094f8f6908 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 9 Apr 2020 09:03:51 +0200 Subject: [PATCH] Add placeholder templates --- ansible/templates/alerta.conf | 5 +++++ ansible/templates/alertad.conf | 24 ++++++++++++++++++++++++ ansible/templates/config.json | 1 + 3 files changed, 30 insertions(+) create mode 100644 ansible/templates/alerta.conf create mode 100644 ansible/templates/alertad.conf create mode 100644 ansible/templates/config.json diff --git a/ansible/templates/alerta.conf b/ansible/templates/alerta.conf new file mode 100644 index 0000000..0fff396 --- /dev/null +++ b/ansible/templates/alerta.conf @@ -0,0 +1,5 @@ +[DEFAULT] +sslverify = no +output = psql +endpoint = http://localhost:8080/api +timezone = Europe/London diff --git a/ansible/templates/alertad.conf b/ansible/templates/alertad.conf new file mode 100644 index 0000000..eded526 --- /dev/null +++ b/ansible/templates/alertad.conf @@ -0,0 +1,24 @@ +DEBUG = True +SECRET = "^Bpa%i8_nCAc8fI4l9)nhn2EG2!@GJga" +AUTH_REQUIRED = True + +SEVERITY_MAP = { + 'fatal': 0, + 'critical': 1, + 'major': 2, + 'minor': 3, + 'warning': 4, + 'indeterminate': 5, + 'cleared': 5, + 'normal': 5, + 'ok': 5, + 'informational': 6, + 'debug': 7, + 'trace': 8, + 'unknown': 9 +} +DEFAULT_NORMAL_SEVERITY = 'normal' # 'normal', 'ok', 'cleared' +DEFAULT_PREVIOUS_SEVERITY = 'indeterminate' + +PLUGINS = ['reject', 'blackout', 'geoip', 'normalise'] +GEOIP_URL = 'http://ip-api.com/json' diff --git a/ansible/templates/config.json b/ansible/templates/config.json new file mode 100644 index 0000000..954d0df --- /dev/null +++ b/ansible/templates/config.json @@ -0,0 +1 @@ +{"endpoint": "https://alerta-api.example.com"}