]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Add tests for web cookbook
[chef.git] / cookbooks / hardware / recipes / default.rb
index 793bda175d168003a6fe6e8f6be0fb69c77cde7e..7c7790d47075cf4e549ac483a65f89a8593270a8 100644 (file)
@@ -17,8 +17,8 @@
 # limitations under the License.
 #
 
-include_recipe "tools"
 include_recipe "munin"
+include_recipe "tools"
 
 ohai_plugin "hardware" do
   template "ohai.rb.erb"
@@ -94,6 +94,19 @@ when "IBM"
 when "VMware, Inc."
   package "open-vm-tools"
 
+  # Remove timeSync plugin completely
+  # https://github.com/vmware/open-vm-tools/issues/302
+  file "/usr/lib/open-vm-tools/plugins/vmsvc/libtimeSync.so" do
+    action :delete
+    notifies :restart, "service[open-vm-tools]"
+  end
+
+  # 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