Increase allowed time for chef runs
authorTom Hughes <tom@compton.nu>
Fri, 9 Dec 2016 21:39:43 +0000 (21:39 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 9 Dec 2016 21:40:09 +0000 (21:40 +0000)
cookbooks/chef/templates/default/report.rb.erb

index 0317f92..6b8ec5b 100644 (file)
@@ -17,7 +17,7 @@ class Chef
         if failed? && !exception.is_a?(SystemExit)
           subject = "Chef run failed on #{node.name}"
           message = "#{run_status.formatted_exception}\n"
-        elsif elapsed_time > 300
+        elsif elapsed_time > 600
           subject = "Chef run took #{elapsed_time} on #{node.name}"
           message = ""
         end