]> git.openstreetmap.org Git - chef.git/commitdiff
Disable host time sync on VMware guests
authorGrant Slater <git@firefishy.com>
Sun, 1 Dec 2019 16:57:40 +0000 (16:57 +0000)
committerGrant Slater <git@firefishy.com>
Sun, 1 Dec 2019 16:57:52 +0000 (16:57 +0000)
cookbooks/hardware/recipes/default.rb

index 793bda175d168003a6fe6e8f6be0fb69c77cde7e..efe8f3b483cddf8e33253ba0e00b83976c0ad4d3 100644 (file)
@@ -98,6 +98,12 @@ when "VMware, Inc."
     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|