X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/dad78982f77fb5b8afc07bb3b7bbe6840ecec508..01492948652e950f3a1335576a491aa8963e66e9:/cookbooks/hardware/attributes/default.rb?ds=inline diff --git a/cookbooks/hardware/attributes/default.rb b/cookbooks/hardware/attributes/default.rb index 45b46a18a..8b794cab7 100644 --- a/cookbooks/hardware/attributes/default.rb +++ b/cookbooks/hardware/attributes/default.rb @@ -19,3 +19,9 @@ if node[:kernel] and node[:kernel][:modules] 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