Created
May 9, 2018 15:12
-
-
Save dholmes/41757972f34b9b86e03359b23e060407 to your computer and use it in GitHub Desktop.
Just a snip-it of a Vagrantfile that could be helpful for using either TCP nfs or rsync with the gatling-rsync plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mounts | |
(settings['volumes'] || {'.' => '/vagrant'}).each do |src, dst| | |
if Vagrant.has_plugin?("vagrant-gatling-rsync") | |
config.vm.synced_folder src, dst, type: "rsync", rsync__exclude: [".git/", ".idea/"], rsync__verbose: true | |
else | |
config.vm.synced_folder src, dst, type: "nfs", mount_options: ['rw', 'vers=3', 'tcp'], linux__nfs_options: ['rw','no_subtree_check','all_squash','async'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment