Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

run-notifier (8) Versions 0.2.4

Installs/Configures chef-run-notifier

Policyfile
Berkshelf
Knife
cookbook 'run-notifier', '= 0.2.4', :supermarket
cookbook 'run-notifier', '= 0.2.4'
knife supermarket install run-notifier
knife supermarket download run-notifier
README
Dependencies
Quality 0%

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.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. 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