berkshelf / vagrant-berkshelf

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

Plugin always runs, even when not provisioning the VM. #298

Open todd-a-jacobs opened 8 years ago

todd-a-jacobs commented 8 years ago

Currently, I have the following in my Vagrantfile:

config.berkshelf.enabled = true

However, this causes Berkshelf to resolve and vendor cookbooks on every single run (which is a relatively expensive operation) even if the run isn't a provisioning run. I attempted to make the Berkshelf run dependent on whether or not provisioning would run by moving it into the config.vm.provision :chef_solo block, but this still results in:

==> default: Updating Vagrant's Berkshelf...

on each run.

Expected behavior is that Berkshelf will resolve dependencies and vendor cookbooks only on initial vagrant up or when running vagrant reload --provision.