From 4b615e44f59f31c31dfe65f39051bad12bf0f7ba Mon Sep 17 00:00:00 2001 From: Bartosz Cisek Date: Fri, 3 Jul 2020 13:31:06 +0200 Subject: [PATCH] Add VictorOps configuration options (#133) [minor] release Co-authored-by: Bartosz Cisek --- README.md | 2 ++ defaults/main.yml | 2 ++ templates/alertmanager.yml.j2 | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/README.md b/README.md index ad41dc1..c249517 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults | `alertmanager_pagerduty_url` | "" | Pagerduty webhook url | | `alertmanager_opsgenie_api_key` | "" | Opsgenie webhook key | | `alertmanager_opsgenie_api_url` | "" | Opsgenie webhook url | +| `alertmanager_victorops_api_key` | "" | VictorOps webhook key | +| `alertmanager_victorops_api_url` | "" | VictorOps webhook url | | `alertmanager_hipchat_api_url` | "" | Hipchat webhook url | | `alertmanager_hipchat_auth_token` | "" | Hipchat authentication token | | `alertmanager_wechat_url` | "" | Enterprise WeChat webhook url | diff --git a/defaults/main.yml b/defaults/main.yml index db603cb..d997823 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -37,6 +37,8 @@ alertmanager_slack_api_url: '' alertmanager_pagerduty_url: '' alertmanager_opsgenie_api_key: '' alertmanager_opsgenie_api_url: '' +alertmanager_victorops_api_key: '' +alertmanager_victorops_api_url: '' alertmanager_hipchat_api_url: '' alertmanager_hipchat_auth_token: '' alertmanager_wechat_url: '' diff --git a/templates/alertmanager.yml.j2 b/templates/alertmanager.yml.j2 index 5d1929d..7c04df3 100644 --- a/templates/alertmanager.yml.j2 +++ b/templates/alertmanager.yml.j2 @@ -21,6 +21,12 @@ global: {% if alertmanager_opsgenie_api_url | string | length %} opsgenie_api_url: {{ alertmanager_opsgenie_api_url | quote }} {% endif %} +{% if alertmanager_victorops_api_key | string | length %} + victorops_api_key: {{ alertmanager_victorops_api_key | quote }} +{% endif %} +{% if alertmanager_victorops_api_url | string | length %} + victorops_api_url: {{ alertmanager_victorops_api_url | quote }} +{% endif %} {% if alertmanager_hipchat_api_url | string | length %} hipchat_api_url: {{ alertmanager_hipchat_api_url | quote }} {% endif %}