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