X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6d17eab7d16de077fef40af1222c14a6773b96ed..9de17ece169e2c0f91c5545b328fc0cc2fc6a0f4:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 454386459..6c14fd873 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -91,6 +91,26 @@ when "Supermicro" end when "IBM" units << "0" +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 + end end units.sort.uniq.each do |unit| @@ -537,10 +557,18 @@ unless Dir.glob("/sys/class/hwmon/hwmon*").empty? end if node[:hardware][:shm_size] + execute "remount-dev-shm" do + action :nothing + command "/bin/mount -o remount /dev/shm" + user "root" + group "root" + end + mount "/dev/shm" do - action [:mount, :enable] + action :enable device "tmpfs" fstype "tmpfs" options "rw,nosuid,nodev,size=#{node[:hardware][:shm_size]}" + notifies :run, "execute[remount-dev-shm]" end end