Ignore reverse-SSHFS mountpoint from file synchronization 96/100896/2
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Mon, 27 Jan 2020 16:34:05 +0000 (17:34 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Wed, 29 Jan 2020 16:12:32 +0000 (17:12 +0100)
This patch intends to avoid attempts to synchronize files to the VM that
have been mounted from it.

Issue-ID: ONAPARC-551
Change-Id: Ida9b13c5f109d3a05dd35e68f17e7898f23750c5
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
bootstrap/vagrant-minimal-onap/Vagrantfile

index 0e72b88..e12c035 100644 (file)
@@ -195,7 +195,7 @@ Vagrant.configure('2') do |config|
       end
 
       if machine[:name] == 'operator'
-        config.vm.synced_folder ".", synced_folder_main, type: "rsync", rsync__exclude: "Vagrantfile"
+        config.vm.synced_folder ".", synced_folder_main, type: "rsync", rsync__exclude: ["Vagrantfile", "operator"]
         config.vm.synced_folder "./operator", "/home/#{vagrant_user}", type: "sshfs", reverse: true, sshfs_opts_append: "-o nonempty"
 
         config.vm.provision "setup_debconf", type: :shell, inline: $setup_debconf