Permalink
Browse files

Add NFS support

  • Loading branch information...
BronsonQuick committed Jul 4, 2017
1 parent 2cde06f commit a06560f33ba83a4758d8ffee4ac91f88f8d4f7b2
Showing with 14 additions and 4 deletions.
  1. +11 −4 Vagrantfile
  2. +3 −0 config.yaml
View
@@ -111,10 +111,17 @@ Vagrant.configure("2") do |config|
# Ensure that WordPress can install/update plugins, themes and core
if vagrant_version >= "1.3.0"
config.vm.synced_folder ".", "/vagrant", :mount_options => [ "dmode=777,fmode=777" ]
CONF["synced_folders"].each do |from, to|
config.vm.synced_folder from, to, :mount_options => [ "dmode=777,fmode=777" ]
end if CONF["synced_folders"]
if CONF['nfs'] == true
config.vm.synced_folder ".", "/vagrant", :nfs => { :mount_options => ["dmode=777","fmode=777"] }
CONF["synced_folders"].each do |from, to|
config.vm.synced_folder from, to, :nfs => { :mount_options => ["dmode=777","fmode=777"] }
end if CONF["synced_folders"]
else
config.vm.synced_folder ".", "/vagrant", :mount_options => [ "dmode=777,fmode=777" ]
CONF["synced_folders"].each do |from, to|
config.vm.synced_folder from, to, :mount_options => [ "dmode=777,fmode=777" ]
end if CONF["synced_folders"]
end
else
config.vm.synced_folder ".", "/vagrant", :extra => "dmode=777,fmode=777"
CONF["synced_folders"].each do |from, to|
View
@@ -113,3 +113,6 @@ virtualbox:
#
# (e.g. 2)
cpus: null
# NFS support. You should change this to Yes if you use VMWare
nfs: No

0 comments on commit a06560f

Please sign in to comment.