Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Add VictorOps configuration options (#133)
Browse files Browse the repository at this point in the history
[minor] release

Co-authored-by: Bartosz Cisek <bartosz.cisek@ebury.com>
  • Loading branch information
bartoszcisek and bartoszcisek authored Jul 3, 2020
1 parent 3f4f089 commit 4b615e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down
6 changes: 6 additions & 0 deletions templates/alertmanager.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 4b615e4

Please sign in to comment.