berkshelf / vagrant-berkshelf

A Vagrant plugin to add Berkshelf integration to the Chef provisioners
Other
379 stars 100 forks source link

berkshelf shares the wrong folder when bringing up new vagrant box #295

Open ccope opened 8 years ago

ccope commented 8 years ago

Steps to repro: vagrant destroy && vagrant box remove (your box name) vagrant up --provision

Chef run will fail due to missing cookbooks (like apt)

This only occurs when the box is added. I see on the first run it vendors the cookbooks into a shelf (in (~/.berkshelf/vagrant-berkshelf/shelves/...), but then it tries sharing the main project 'cookbooks' folder (next to my Vagrantfile) rather than the shelf. vagrant reload && vagrant provision will correctly mount the shelf instead.

Versions: Vagrant 1.7.4, 1.8.1 ChefDK 0.8.0, 0.10.0 vagrant-berkshelf 4.0.4, 4.1.0