Last active
August 29, 2015 14:01
-
-
Save johnfitzpatrick/b6708208d2aea870775c to your computer and use it in GitHub Desktop.
Handler recipe for Chef Intermediate class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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