Skip to content

Commit

Permalink
Make vagrant rsync more robust
Browse files Browse the repository at this point in the history
In case that there is a dangling sysmlink, it should proceed copying.

Signed-off-by: Roman Mohr <[email protected]>
  • Loading branch information
rmohr committed Oct 6, 2017
1 parent a4cf294 commit ba84a23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ Vagrant.configure(2) do |config|
if $use_nfs then
config.vm.synced_folder "./", "/vagrant", type: "nfs"
else
config.vm.synced_folder "./", "/vagrant", type: "rsync", rsync__exclude: [ "cluster/vagrant/.kubectl", "cluster/vagrant/.kubeconfig", ".vagrant", "vendor", ".git"]
config.vm.synced_folder "./", "/vagrant", type: "rsync",
rsync__exclude: [ "cluster/vagrant/.kubectl", "cluster/vagrant/.kubeconfig", ".vagrant", "vendor", ".git"],
rsync__args: ["--archive", "--delete"]
end

config.vm.provision "shell", inline: <<-SHELL
Expand Down

0 comments on commit ba84a23

Please sign in to comment.