]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Update piwik to 3.13.3
[chef.git] / cookbooks / hardware / recipes / default.rb
index efe8f3b483cddf8e33253ba0e00b83976c0ad4d3..060229debb6748fc59670b2a2242bc98dffca02d 100644 (file)
 # limitations under the License.
 #
 
-include_recipe "tools"
+include_recipe "apt"
+include_recipe "git"
 include_recipe "munin"
+include_recipe "sysfs"
+include_recipe "tools"
 
 ohai_plugin "hardware" do
   template "ohai.rb.erb"
@@ -94,15 +97,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
+    action :delete
+    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
 
@@ -250,8 +260,10 @@ if tools_packages.include?("areca")
   git "/opt/areca" do
     action :sync
     repository "https://git.openstreetmap.org/private/areca.git"
+    depth 1
     user "root"
     group "root"
+    not_if { ENV["TEST_KITCHEN"] }
   end
 else
   directory "/opt/areca" do