Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save johnfitzpatrick/b6708208d2aea870775c to your computer and use it in GitHub Desktop.
Save johnfitzpatrick/b6708208d2aea870775c to your computer and use it in GitHub Desktop.
Handler recipe for Chef Intermediate class
chef_gem "pony" do
action :install
end
include_recipe "chef_handler"
cookbook_file "#{node['chef_handler']['handler_path']}/email_handler.rb" do
source "handlers/email_handler.rb"
owner "root"
group "root"
mode "0755"
end
chef_handler "MyCompany::EmailMe" do
source "#{node['chef_handler']['handler_path']}/email_handler.rb"
arguments [node['email_handler']['from_address'],
node['email_handler']['to_address']]
action :enable
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment