Skip to content

Instantly share code, notes, and snippets.

@dholmes
Created May 9, 2018 15:12
Show Gist options
  • Save dholmes/41757972f34b9b86e03359b23e060407 to your computer and use it in GitHub Desktop.
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
# 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