X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/d9a4d7aba17a3e2b0a76aa3507c0e7a8f969f888..aaf1ea5c8f1f14b6b81bea7aad51743c767d310c:/cookbooks/hardware/recipes/default.rb 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