Skip to content

Commit

Permalink
Merge pull request #33 from stakater/fixStringAlertmanager
Browse files Browse the repository at this point in the history
Update Json
  • Loading branch information
John2020-cyber authored Dec 28, 2023
2 parents 6c04d8d + 8eeafd6 commit aeae2e3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
ansible.builtin.set_fact:
modified_alertmanager_secret_content: >
{{ (fetched_alertmanager_secret.resources[0].data['alertmanager.yaml'] | b64decode | from_yaml) | combine({
'receivers': [
"receivers": [
{
'name': receiver_name,
'webhook_configs': [{
'url': receiver_url
"name": "receiver_name",
"webhook_configs": [{
"url": "receiver_url"
}]
}
],
'route': {
'receiver': receiver_name,
'routes': [
"route": {
"receiver": "receiver_name",
"routes": [
{
'receiver': receiver_name,
'match': {
'severity': 'info | warning | critical'
"receiver": "receiver_name",
"match": {
"severity": "info | warning | critical"
}
}
]
Expand Down

0 comments on commit aeae2e3

Please sign in to comment.