[chef] Re: Re: Re: Hack: berkshelf 1.3 and vagrant 1.0


Chronological Thread 
  • From: Andrew Gross < >
  • To: chef < >
  • Subject: [chef] Re: Re: Re: Hack: berkshelf 1.3 and vagrant 1.0
  • Date: Thu, 28 Mar 2013 13:58:58 -0400

Hmm, Berkshelf should make the cookbooks discoverable.  I have not had that specific issue.  How is Chef installed in your VM?  Via the omnibus embedded style?  Or via a gem. I am curious if that might affect it.  Also, is this for windows or linux?


On Thu, Mar 28, 2013 at 9:58 AM, Mark Pimentel < " target="_blank"> > wrote:
I still cannot get vagrant provision to work with chef-solo.  I followed your upgrade steps below, and then ran ....

vagrant up
vagrant provision

On the up command it brings up the vagrant box as expected.
On the provision step, it invokes the berkshelf plugin to download all the cookbooks as defined the Berksfile to some isolated directory for this vagrant box.  But then when it runs the actual chef-solo run, it cannot find any cookbooks.  Am I missing something here?  Shouldn't the berkshelf plugin somehow be injecting the path or creating a shared folder to the isolated download directory so chef-solo in the VM can find its cookbooks?


On 2013-03-26 12:08 PM, Andrew Gross wrote:
I managed to get the upgrade working, was a little bit of a struggle.  

General Steps
1. Install new Vagrant DMG (on mac)
2. Uninstall Vagrant Gem (from system, rvm, bundler whatever)
3. Install Berkshelf Vagrant Plugin (`vagrant plugin install berkshelf-vagrant`)
4. Upgrade Berkshelf Gem to 1.3.*
5. Rerun Berks install
6. Remove any 'require Berkshelf' sections from my Vagrantfile
7. Remove references to 'config.berkshelf.berksfile_path' from Vagrantfile

Notes:
`vagrant up` seems to not do a `vagrant provision` automatically, so now I have to chain the commands.

The `.vagrant` file is now actually a folder, so make sure to use rm -rf to clean up afterwards.

Granted my Vagrantfiles are very simple, so there may be more conversion needed.

Andrew


On Tue, Mar 26, 2013 at 10:09 AM, Brian Akins < " target="_blank"> > wrote:
I had so many issues with upgrading Vagrant that I decided to go back
to 1.0 for now. I needed Berkshelf integration.  I could not get the
"new" berkshelf-vagrant to work with vagrant 1.0, but that may be just
me.

So, here's my hack that others may find helpful - if only as comedic relief:

https://github.com/bakins/berkshelf-hobo






Archive powered by MHonArc 2.6.16.

§