[chef] RE: [test-kitchen] Cookbook depends on another cookbook in local repo?


Chronological Thread 
  • From: Matt Ray < >
  • To: " " < >
  • Subject: [chef] RE: [test-kitchen] Cookbook depends on another cookbook in local repo?
  • Date: Sat, 8 Dec 2012 05:04:48 +0000
  • Accept-language: en-US

http://tickets.opscode.com/browse/KITCHEN-53 has the documentation fix now.

If you have cookbook dependencies not provided by the Community site (ie. 
local file system or from a Git repository), you may place a Librarian 
`Cheffile` in your `test/kitchen/cookbooks/` directory to take full advantage 
of Librarian's dependency resolution.

Thanks,
Matt Ray
Senior Technical Evangelist | Opscode Inc.

 | (512) 731-2218
Twitter, IRC, GitHub: mattray

________________________________________
From: Jay Pipes 

Sent: Tuesday, November 13, 2012 9:46 PM
To: 

Subject: [chef] [test-kitchen] Cookbook depends on another cookbook in local 
repo?

Hi again,

I have a depends in one local cookbook's metadata.rb that refers to a
cookbook in my local filesystem, not opscode's servers. How can I inform
test-kitchen to not try to find that cookbook on Opscode's servers?

When running test-kitchen, I get this:

:~/repos/att-cloud/cookbook-nova$
 kitchen test
<snip>
Assembling required cookbooks at
[/home/jpipes/repos/att-cloud/cookbook-nova/test/kitchen/.kitchen/cookbooks].
/var/lib/gems/1.9.1/gems/librarian-0.0.25/lib/librarian/chef/source/site.rb:247:in
`cache_remote_object!': Could not get
http://community.opscode.com/api/v1/cookbooks/openstack-common because
404 Not Found! (Librarian::Error)

The openstack-common cookbook is local on my machine in
/home/jpipes/repos/att-cloud/cookbook-openstack-common.

Note that cookbook-openstack-common/metadata.rb does indeed have:

name            "openstack-common"

in it...

Thanks in advance for any hints.

Best,
-jay




  • [chef] RE: [test-kitchen] Cookbook depends on another cookbook in local repo?, Matt Ray, 12/07/2012

Archive powered by MHonArc 2.6.16.

§