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.
This has been tested on centos and amazon.
- chef-client cookbook
- chef-handler cookbook
- Set the
node[:mail_handler][:to_address]
attribute. - Run the default recipe early on in your chef run (preferably right after the chef-client cookbook).
name | description | type | default |
---|---|---|---|
:to_address |
email address to send to. | string, array | root |
:from_address |
email address to send from. | string | [email protected] |
:send_statuses |
which statuses to trigger email | string, array | ["Successful", "Failed"] |
:hostname |
a custom hostname | string | node.fqdn |
:enable |
enable handler | bool | true |
default - adds the necessary files and runs the chef-handler lwrp.
Author:: Table XI ([email protected])