[chef] Re: Re: Chef-solo tutorial


Chronological Thread 
  • From: Michael Callahan < >
  • To:
  • Cc: Jonathan Matthews < >
  • Subject: [chef] Re: Re: Chef-solo tutorial
  • Date: Thu, 24 Feb 2011 18:45:24 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qp/otdkbytab+COVSn8MOq2sePhzhXAbocLpo5VVCXf6UzFZMxRiiUs3UcgOrAvNVI S98cIO3RocToP3+watIAJ5mYeeGfVhgji+Nfb44jX2xZwvdnb3nI+LhaBGbq/EuTPzns /f2ktfXh5g6Fi3+YV5GkHM6mG+91bUsmtjwhM=

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.

§