]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/attributes/default.rb
Bring ramoth's watchdog under chef control
[chef.git] / cookbooks / hardware / attributes / default.rb
index 45b46a18a5fe178ae3aadd70281f42a4db7b70ef..8b794cab78df5e2e6396374215f90d7fdbce08bb 100644 (file)
@@ -19,3 +19,9 @@ if node[:kernel] and node[:kernel][:modules]
     default[:apt][:sources] |= [ "hwraid" ]
   end
 end
     default[:apt][:sources] |= [ "hwraid" ]
   end
 end
+
+if File.exists?("/proc/xen")
+  default[:hardware][:watchdog] = "xen_wdt"
+elsif node[:kernel][:modules].include?("i6300esb")
+  default[:hardware][:watchdog] = "none"
+end