Skip to content

Commit

Permalink
Merge pull request #353 from StackStorm/reduce_noise
Browse files Browse the repository at this point in the history
Reduce opstown noise
  • Loading branch information
LindsayHill authored Nov 14, 2018
2 parents e0d2fae + 65302d3 commit 0c81784
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions actions/workflows/destroy_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion rules/st2cd_slack_decommission.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 0c81784

Please sign in to comment.