Run Notifier to send notification to HipChat and / or Slack if chef run successfully or failed. https://supermarket.chef.io/cookbooks/run-notifier
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]"
]
}
add_component_x
)kitchen test
Author: Faizal Zakaria