Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.46 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.46 KB

chef-mail-handler cookbook

This is a wrapper cookbook to setup and run the chef-mail-handler gem with pull requests from:

This manually installs the mail handler. If the maintainers update the gem, I'll change the recipe to use the chef_gem. Also, if either pull requests mentioned above do not want their changes included here I will remove them.

In addtion, I've added custom hostname support.

Requirements

This has been tested on centos and amazon.

Usage

  1. Set the node[:mail_handler][:to_address] attribute.
  2. Run the default recipe early on in your chef run (preferably right after the chef-client cookbook).

Attributes

name description type default
:to_address email address to send to. string, array root
:from_address email address to send from. string chef-client@node.fqdn
:send_statuses which statuses to trigger email string, array ["Successful", "Failed"]
:hostname a custom hostname string node.fqdn
:enable enable handler bool true

Recipes

default - adds the necessary files and runs the chef-handler lwrp.

Author

Author:: Table XI (sysadmins@tablexi.com)