]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Increase size of /dev/shm on fume
[chef.git] / cookbooks / hardware / recipes / default.rb
index bd525babff6d0e67e80a1ca88ffd5866e188af4a..c8898f405d2ef818bf34b603d972b75e3c37e918 100644 (file)
@@ -535,3 +535,12 @@ unless Dir.glob("/sys/class/hwmon/hwmon*").empty?
     notifies :run, "execute[/etc/sensors.d/chef.conf]"
   end
 end
+
+if node[:hardware][:shm_size]
+  mount "/dev/shm" do
+    action [:mount, :enable]
+    device "tmpfs"
+    fstype "tmpfs"
+    options "rw,nosuid,nodev,size=#{node[:hardware][:shm_size]}"
+  end
+end