Commit ef8d5d70 authored by Michal Rostecki's avatar Michal Rostecki

vagrant: Set mount options for NFS

NFS is the default (and well tested) mount type for vagrant-libvirt. Howver, to make it work, it nneeds the vers=3,tcp options to be provided. Signed-off-by: 's avatarMichal Rostecki <vadorovsky@gmail.com>
parent 116bcbb2
...@@ -40,7 +40,11 @@ Vagrant.configure("2") do |config| ...@@ -40,7 +40,11 @@ Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-timezone") if Vagrant.has_plugin?("vagrant-timezone")
config.timezone.value = :host config.timezone.value = :host
end end
config.vm.synced_folder HOME, HOME, type: MOUNT_TYPE if "#{MOUNT_TYPE}" == "nfs"
config.vm.synced_folder HOME, HOME, type: "nfs", mount_options: ["vers=3,tcp"]
else
config.vm.synced_folder HOME, HOME, type: MOUNT_TYPE
end
if NUM_NODES==0 if NUM_NODES==0
provision(config.vm, 0) provision(config.vm, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment