vagrant: updated Vagrantfile to use rsync
[vpp.git] / build-root / vagrant / Vagrantfile
index 4770903..1f8cf9a 100644 (file)
@@ -14,9 +14,8 @@ Vagrant.configure(2) do |config|
   config.vm.box_check_update = false
 
   config.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"update.sh")
-  config.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"clone.sh")
-  config.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"build.sh"), :args => "/home/vagrant/git/vpp vagrant"
-  config.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"install.sh"), :args => "/home/vagrant/git/vpp"
+  config.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"build.sh"), :args => "/vpp vagrant"
+  config.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"install.sh"), :args => "/vpp"
   config.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"clearinterfaces.sh")
   config.vm.provision :shell, :path => File.join(File.dirname(__FILE__),"run.sh")
 
@@ -63,7 +62,20 @@ Vagrant.configure(2) do |config|
 
   config.ssh.forward_agent = true
 
-  config.vm.synced_folder "../../", "/vpp", disabled: false
+  config.vm.synced_folder "../../", "/vpp", type: "rsync",
+   rsync__auto: false,
+   rsync__exclude: [
+    "build-root/build*/",
+    "build-root/install*/",
+    "build-root/images*/",
+    "build-root/*.deb",
+    "build-root/*.rpm",
+    "build-root/*.changes",
+    "build-root/python",
+    "build-root/deb/debian/*.dkms",
+    "build-root/deb/debian/*.install",
+    "build-root/deb/debian/changes",
+    "build-root/tools"]
 
   config.vm.provider "virtualbox" do |vb|
       vb.customize ["modifyvm", :id, "--ioapic", "on"]