Merge pull request #4 from franzliedke/patch-2

[Vagrant] Only use NFS on non-Windows machines
pull/5/head
Toby Zerner 2015-03-07 06:54:01 +10:30
commit 08c34046aa
1 changed files with 9 additions and 5 deletions

14
Vagrantfile vendored
View File

@ -99,11 +99,15 @@ Vagrant.configure("2") do |config|
# Create a static IP
config.vm.network :private_network, ip: server_ip
# Use NFS for the shared folder
config.vm.synced_folder ".", "/vagrant",
id: "core",
:nfs => true,
:mount_options => ['nolock,vers=3,udp,noatime,actimeo=1']
# We can use NFS if we're not running on Windows
share_opts = { :id => "core" }
unless Vagrant::Util::Platform.windows?
share_opts[:nfs] = true
share_opts[:mount_options] = ['nolock,vers=3,udp,noatime,actimeo=1']
end
# Configure the shared folder
config.vm.synced_folder ".", "/vagrant", share_opts
# If using VirtualBox
config.vm.provider :virtualbox do |vb|