]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Disable host time sync on VMware guests
[chef.git] / cookbooks / hardware / recipes / default.rb
index 110273d82cfc68bfffc82dbbff6281920776ff74..efe8f3b483cddf8e33253ba0e00b83976c0ad4d3 100644 (file)
@@ -91,6 +91,19 @@ when "Supermicro"
   end
 when "IBM"
   units << "0"
+when "VMware, Inc."
+  package "open-vm-tools"
+
+  service "open-vm-tools" do
+    action [:enable, :start]
+    supports :status => true, :restart => true
+  end
+
+  # May need additional work per:
+  # https://github.com/vmware/open-vm-tools/issues/302
+  execute "vmware-toolbox-cmd-timesync-disable" do
+    command "/usr/bin/vmware-toolbox-cmd timesync disable"
+  end
 end
 
 units.sort.uniq.each do |unit|