Skip to content

Instantly share code, notes, and snippets.

@smford22
Last active August 29, 2015 14:17
Show Gist options
  • Save smford22/4ebedad7f998c91ff241 to your computer and use it in GitHub Desktop.
Save smford22/4ebedad7f998c91ff241 to your computer and use it in GitHub Desktop.
Chef Analytics
{
"name": "Send Control to HipChat",
"org_name": "<YOUR_ORG>",
"modified_by": "<USERNAME>",
"rule": "rules \"Run Control\"\n rule on run_control\n when\n status = \"success\"\n then\n notify(\"hipchat-success\", \"<YOUR_NAME> had success in run_control \\\"{{ message.name }}\\\" on node {{ message.run.node_name }}\")\n end\n\n rule on run_control\n when\n status = \"failure\"\n then\n notify(\"hipchat-failure\", \"<YOUR_NAME> has a FAILURE on run_control \\\"{{ message.name }}\\\" on node {{ message.run.node_name }}\")\n end\nend",
"with": {
"priority": 0
},
"active": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment