X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/239e985785bf89571d6c0e6a39473861cd065d2a..4b779db7ab4f38f24daed39d1e67acfa9905b000:/cookbooks/chef/templates/default/client.rb.erb diff --git a/cookbooks/chef/templates/default/client.rb.erb b/cookbooks/chef/templates/default/client.rb.erb index 6c9113968..dff9d19ed 100644 --- a/cookbooks/chef/templates/default/client.rb.erb +++ b/cookbooks/chef/templates/default/client.rb.erb @@ -9,10 +9,6 @@ Encoding.default_external = Encoding::UTF_8 -# Load supporting code for report handlers - -require "/etc/chef/report" - # Log at level info log_level :info @@ -29,6 +25,14 @@ ssl_verify_mode :verify_peer chef_server_url "https://chef.openstreetmap.org" +# Make our plugins visible to ohai + +Ohai::Config[:plugin_path] << "<%= node[:ohai][:plugin_dir] %>" + +# Load supporting code for report handlers + +require "/etc/chef/report" + # Create report handler email_handler = Chef::Handler::Email.new(:to => "tom@compton.nu") @@ -37,7 +41,3 @@ email_handler = Chef::Handler::Email.new(:to => "tom@compton.nu") exception_handlers << email_handler report_handlers << email_handler - -# Make our plugins visible to ohai - -Ohai::Config[:plugin_path] << "/etc/chef/ohai"