cookbook 'run-notifier', '= 0.2.4'
run-notifier (8) Versions 0.2.4 Follow2
Installs/Configures chef-run-notifier
cookbook 'run-notifier', '= 0.2.4', :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
e.g.
chef-run-notifier::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['run_notifier']['slack']['enabled']</tt></td>
<td>Boolean</td>
<td>Wheather to enable slack or not</td>
<td><tt>false</tt></td>
</tr>
<tr>
<td><tt>['run_notifier']['slack']['webhook_url']</tt></td>
<td>String</td>
<td>Webhook URL</td>
<td><tt>https://abc.com</tt></td>
</tr>
<tr>
<td><tt>['run_notifier']['slack']['channel']</tt></td>
<td>String</td>
<td>Channel</td>
<td><tt>#default</tt></td>
</tr>
<tr>
<td><tt>['run_notifier']['slack']['username']</tt></td>
<td>String</td>
<td>Username</td>
<td><tt>FaiNow</tt></td>
</tr>
<tr>
<td><tt>['run_notifier']['hipchat']['enabled']</tt></td>
<td>Boolean</td>
<td>Wheather to enable hicphat or not</td>
<td><tt>false</tt></td>
</tr>
<tr>
<td><tt>['run_notifier']['hipchat']['api_token']</tt></td>
<td>String</td>
<td>HipChat API token</td>
<td><tt>1234</tt></td>
</tr>
<tr>
<td><tt>['run_notifier']['hipchat']['username']</tt></td>
<td>String</td>
<td>Username</td>
<td><tt>FaiNow</tt></td>
</tr>
<tr>
<td><tt>['run_notifier']['hipchat']['room_name']</tt></td>
<td>String</td>
<td>Room name</td>
<td><tt>default</tt></td>
</tr>
<tr>
<td><tt>['run_notifier']['hipchat']['notify']</tt></td>
<td>Boolean</td>
<td>Wheather to notify user or not</td>
<td><tt>true</tt></td>
</tr>
</table>
Usage
chef-run-notifier::default
e.g.
Just include chef-run-notifier
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[run-notifier]" ] }
Contributing
e.g.
- 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.4 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:19
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/recipes/default.rb:31
0.2.4 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:26
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:27
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/attributes/default.rb:30
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c05dd50c522b8e91ca963789/run-notifier/recipes/default.rb:31