From 65302d3691c5efade834cef826688420776248fe Mon Sep 17 00:00:00 2001 From: Lindsay Hill Date: Tue, 13 Nov 2018 16:51:53 -0800 Subject: [PATCH] Reduce opstown noise --- actions/workflows/destroy_vm.yaml | 7 ++++--- rules/st2cd_slack_decommission.yaml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/actions/workflows/destroy_vm.yaml b/actions/workflows/destroy_vm.yaml index 951fe953..cc1bf3ea 100755 --- a/actions/workflows/destroy_vm.yaml +++ b/actions/workflows/destroy_vm.yaml @@ -55,8 +55,9 @@ st2cd.destroy_vm: - get_volumes: <% $.used_id %> deregister_monitor: action: sensu.client_delete client=<% $.hostname %>.<% $.dns_zone %> - on-error: - - notify_deregister_monitor_failure + # Do not alert on deregister failure until pysensu-ng can distinguish genuine error from already deleted monitor + #on-error: + # - notify_deregister_monitor_failure on-complete: - get_volumes get_volumes: @@ -110,7 +111,7 @@ st2cd.destroy_vm: notify_success: action: slack.post_message input: - channel: "#opstown" + channel: "#thunderdome" message: "[SUCCEEDED] <% $.hostname %> was destroyed" notify_multiple_instances_failure: diff --git a/rules/st2cd_slack_decommission.yaml b/rules/st2cd_slack_decommission.yaml index 3ba08889..47c41a63 100644 --- a/rules/st2cd_slack_decommission.yaml +++ b/rules/st2cd_slack_decommission.yaml @@ -11,6 +11,6 @@ action: ref: "slack.post_message" parameters: - channel: "#opstown" + channel: "#thunderdome" message: "{% if trigger.status != 'succeeded' %}*{% endif %}[{{trigger.status.upper()}}]{% if trigger.status != 'succeeded' %}*{% endif %} {{trigger.parameters.hostname}} was {% if trigger.status != 'succeeded' %}*NOT* {% endif %}destroyed\n" pack: "st2cd"