]> git.openstreetmap.org Git - chef.git/commitdiff
Invoke exim directly to send chef error reports
authorTom Hughes <tom@compton.nu>
Wed, 29 Apr 2020 18:57:00 +0000 (19:57 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 29 Apr 2020 18:57:00 +0000 (19:57 +0100)
cookbooks/chef/templates/default/report.rb.erb

index 20e32ef4fccea228512250a50e68e2aaaf29e1a8..d00a498a6d54b2b2bfe580999c128abc1447a42a 100644 (file)
@@ -31,6 +31,10 @@ class Chef
 
         require "mail"
 
+        Mail.defaults do
+          mail.delivery_method :exim, :location => "/usr/sbin/exim"
+        end
+
         Mail.deliver do
           to to_address
           from from_address