I'm trying to disable the nfs_export option in my Vagrantfile, so that Vagrant will not touch my /etc/exports
.
The Vagrant documentation says:
NFS synced folders have a set of options that can be specified that are unique to NFS. These are listed below. These options can be specified in the final part of the config.vm.synced_folder definition, along with the type option.
nfs_export (boolean) - If this is false, then Vagrant won't modify your /etc/exports automatically and assumes you've done so already.
I have no experience with Ruby syntax, but I guessed the following would achieve what I want:
config.vm.synced_folder "/data", "/vagrant", type: "nfs", nfs_export: false
This does not work, however. Vagrant still keeps editing my exports file. What is the correct syntax?
I'm running the latest Vagrant 1.6.3 on OSX.
(The main reason I want to disable it, is that for some reason nfsd on my OSX machine does not come up again reliably after a sudo nsfd restart
, which is run by Vagrant after updating the exports file)