Run Notifier to send notification to HipChat and / or Slack if chef run successfully or failed. https://supermarket.chef.io/cookbooks/run-notifier
- Chef version 11 ❌
- Chef version 12 ✅
- Chef version 13 ❌
Key | Type | Description | Default |
---|---|---|---|
['run_notifier']['slack']['enabled'] | Boolean | Wheather to enable slack or not | false |
['run_notifier']['slack']['webhook_url'] | String | Webhook URL | https://abc.com |
['run_notifier']['slack']['channel'] | String | Channel | #default |
['run_notifier']['slack']['username'] | String | Username | FainNow |
['run_notifier']['hipchat']['enabled'] | Boolean | Wheather to enable hicphat or not | false |
['run_notifier']['hipchat']['api_token'] | String | HipChat API token | 1234 |
['run_notifier']['hipchat']['username'] | String | Username | FaiNow |
['run_notifier']['hipchat']['room_name'] | String | Room name | default |
['run_notifier']['hipchat']['notify'] | Boolean | Whether to notify user or not | true |
['run_notifier']['custom_messages']['success_message'] | String | custom success message | '"Chef run succesfully on #{node.name}"' |
['run_notifier']['custom_messages']['failed_message'] | String | custom failed message | '"Failure on #{node.name}: #{run_status.formatted_exception}"' |
Just include chef-run-notifier
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[run-notifier]"
]
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests,
kitchen test
- Submit a Pull Request using Github
Author: Faizal Zakaria