|
|
@ -97,15 +97,15 @@ Vagrant.configure("2") do |config| |
|
|
|
# Create a static IP |
|
|
|
# Create a static IP |
|
|
|
config.vm.network :private_network, ip: server_ip |
|
|
|
config.vm.network :private_network, ip: server_ip |
|
|
|
|
|
|
|
|
|
|
|
# We can use NFS if we're not running on Windows |
|
|
|
# A private dhcp network is required for NFS to work (on Windows hosts, at least) |
|
|
|
share_opts = { :id => "core" } |
|
|
|
# Windows users should use the winnfsd plugin: https://github.com/GM-Alex/vagrant-winnfsd |
|
|
|
unless Vagrant::Util::Platform.windows? |
|
|
|
config.vm.network :private_network, type: "dhcp" |
|
|
|
share_opts[:nfs] = true |
|
|
|
|
|
|
|
share_opts[:mount_options] = ['nolock,vers=3,udp,noatime,actimeo=1'] |
|
|
|
# Use NFS for the shared folder |
|
|
|
end |
|
|
|
config.vm.synced_folder ".", "/vagrant", |
|
|
|
|
|
|
|
id: "core", |
|
|
|
# Configure the shared folder |
|
|
|
:nfs => true, |
|
|
|
config.vm.synced_folder ".", "/vagrant", share_opts |
|
|
|
:mount_options => ['nolock,vers=3,udp,noatime,actimeo=1'] |
|
|
|
|
|
|
|
|
|
|
|
# If using VirtualBox |
|
|
|
# If using VirtualBox |
|
|
|
config.vm.provider :virtualbox do |vb| |
|
|
|
config.vm.provider :virtualbox do |vb| |
|
|
|