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"}