X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/dad78982f77fb5b8afc07bb3b7bbe6840ecec508..01492948652e950f3a1335576a491aa8963e66e9:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index f6eb31ee3..689034a2a 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -248,13 +248,7 @@ end end end -if File.exists?("/proc/xen") - watchdog = "xen_wdt" -elsif node[:kernel][:modules].include?("i6300esb") - watchdog = "none" -end - -if watchdog +if node[:hardware][:watchdog] package "watchdog" template "/etc/default/watchdog" do @@ -262,7 +256,7 @@ if watchdog owner "root" group "root" mode 0644 - variables :module => watchdog + variables :module => node[:hardware][:watchdog] end service "watchdog" do