cookbook 'run-notifier', '= 0.2.5'
run-notifier (8) Versions 0.2.5 Follow2
Installs/Configures chef-run-notifier
cookbook 'run-notifier', '= 0.2.5', :supermarket
knife supermarket install run-notifier
knife supermarket download run-notifier
chef-run-notifier Cookbook
Run Notifier to send notification to HipChat and / or Slack if chef run successfully or failed.
Requirements
Attributes
chef-run-notifier::default
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 |
Usage
chef-run-notifier::default
Just include chef-run-notifier
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[run-notifier]" ] }
Contributing
- 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, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Author: Faizal Zakaria
Dependent cookbooks
chef_handler >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
0.2.5 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/recipes/default.rb:31
0.2.5 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/attributes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/7296202ee5ce78f73a8870c0/run-notifier/recipes/default.rb:31