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 ff37b7b..6c39c9a 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