vagrant - Check if NFS is available from within Vagrantfile -
i have vagrantfile , default option mounting on non windows machines nfs.
if vagrant::util::platform.windows? == false config.vm.synced_folder ".", "/vagrant", id: "core", :nfs => true, :mount_options => ['nolock,vers=3,udp'] end
however have developer didn't have nfs installed on 'nix box , took awhile figure out problem.
is there way check if host machine has nfs installed in similar approach within vagrantfile?
you can read https://www.vagrantup.com/docs/plugins/host-capabilities.html definition , implementation of host capabilities identical guest capabilities.
Comments
Post a Comment