From d9a4d7aba17a3e2b0a76aa3507c0e7a8f969f888 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 1 Dec 2019 16:57:40 +0000 Subject: [PATCH] Disable host time sync on VMware guests --- cookbooks/hardware/recipes/default.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 793bda175..efe8f3b48 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -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| -- 2.43.2