Vagrantfile: do a one-way rsync so that binaries don't get shared between VMs and host
This commit is contained in:
parent
bd85a36cb1
commit
85ae6fffbb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue