Vagrantfile: do a one-way rsync so that binaries don't get shared between VMs and host

This commit is contained in:
Cameron Sparr 2015-08-25 11:23:40 -06:00
parent bd85a36cb1
commit 85ae6fffbb
1 changed files with 4 additions and 1 deletions

5
Vagrantfile vendored
View File

@ -7,7 +7,10 @@ VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64" config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder ".", "/home/vagrant/go/src/github.com/influxdb/telegraf" config.vm.synced_folder ".", "/home/vagrant/go/src/github.com/influxdb/telegraf",
type: "rsync",
rsync__args: ["--verbose", "--archive", "--delete", "-z", "--safe-links"],
rsync__exclude: ["./telegraf", ".vagrant/"]
config.vm.provision "shell", name: "sudo", inline: <<-SHELL config.vm.provision "shell", name: "sudo", inline: <<-SHELL
chown -R vagrant:vagrant /home/vagrant/go chown -R vagrant:vagrant /home/vagrant/go