[chef] Re: Re: Re: Chef-solo tutorial


Chronological Thread 
  • From: Eric Yang < >
  • To: " " < >
  • Cc: Jonathan Matthews < >
  • Subject: [chef] Re: Re: Re: Chef-solo tutorial
  • Date: Thu, 24 Feb 2011 19:00:01 -0800
  • Accept-language: en-US
  • Acceptlanguage: en-US

Title: Re: [chef] Re: Re: Chef-solo tutorial
This is exactly what I missed.  Works great after the structure change.  Chef-solo wiki should include your example.  :)   Thank you, Michael.  

Regards,
Eric

On 2/24/11 6:45 PM, "Michael Callahan" < "> > wrote:

Local path names should work fine as URLs for the recipe bundle argument--we do this all the time (albeit with an old version of Chef).

However, I think chef-solo expects the tarball you give it to have a directory structure of the form

    cookbooks/
       |---- cbname1/
       |       |--attributes/ ... etc
       ...
       |---- cbname2/
       |       |--attributes/
       ...

In other words, if your resolver-0.82.tar.gz just extracts into a single directory resolver/, or even dumps the metadata.rb, attributes/, recipes/ etc entries into the current directory, you need to make a new tarball which has that cookbook within a toplevel cookbooks/ directory, with cookbooks/resolver/ under that.

See the Rakefile task for bundling cookbooks for details...

Michael


On Thu, Feb 24, 2011 at 6:06 PM, Jonathan Matthews < "> > wrote:
On 25 February 2011 01:52, Eric Yang < "> > wrote:
> Chef-solo –j node.json –r resolver-0.8.2.tar.gz

That doesn't look like a URL to me.

From the wiki page you cited: "-r, --recipe-url RECIPE_URL"

Jonathan
--
Jonathan Matthews
London, UK
http://www.jpluscplusm.com/contact.html





Archive powered by MHonArc 2.6.16.

§