]> git.openstreetmap.org Git - chef.git/commitdiff
Use NFSv4 over TCP for NFS mounts
authorTom Hughes <tom@compton.nu>
Sat, 16 Feb 2019 12:11:45 +0000 (12:11 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 16 Feb 2019 12:12:42 +0000 (12:12 +0000)
cookbooks/nfs/recipes/default.rb

index ff37b7b61643a75bfc31483f7dc854e908fbb872..6c39c9a67138aab70b34442003ae0cd55a75133d 100644 (file)
@@ -21,9 +21,9 @@ package "nfs-common"
 
 node[:nfs].each do |mountpoint, details|
   mount_options = if details[:readonly]
-                    "ro,bg,soft,udp,rsize=8192,wsize=8192,nfsvers=3"
+                    "ro,bg,soft,tcp,rsize=8192,wsize=8192,nfsvers=4"
                   else
-                    "rw,bg,udp,rsize=8192,wsize=8192,nfsvers=3"
+                    "rw,bg,tcp,rsize=8192,wsize=8192,nfsvers=4"
                   end
 
   directory mountpoint do