From: Grant Slater Date: Sun, 1 Dec 2019 17:22:21 +0000 (+0000) Subject: Forceful open-vm-tools timeSync disable X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/aaf1ea5c8f1f14b6b81bea7aad51743c767d310c Forceful open-vm-tools timeSync disable --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index efe8f3b48..91b7510b9 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -94,15 +94,22 @@ when "IBM" when "VMware, Inc." package "open-vm-tools" - service "open-vm-tools" do - action [:enable, :start] - supports :status => true, :restart => true + # Remove timeSync plugin completely + # https://github.com/vmware/open-vm-tools/issues/302 + file "/usr/lib/open-vm-tools/plugins/vmsvc/libtimeSync.so" do + state :absent + notifies :restart, "service[open-vm-tools]" end - # May need additional work per: - # https://github.com/vmware/open-vm-tools/issues/302 + # Attempt to tell Host we are not interested in timeSync execute "vmware-toolbox-cmd-timesync-disable" do command "/usr/bin/vmware-toolbox-cmd timesync disable" + ignore_failure true + end + + service "open-vm-tools" do + action [:enable, :start] + supports :status => true, :restart => true end end