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:

jpipes@uberbox:~/repos/att-cloud/cookbook-nova$ kitchen test

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

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.
matt@opscode.com | (512) 731-2218
Twitter, IRC, GitHub: mattray


From: Jay Pipes [jaypipes@gmail.com]
Sent: Tuesday, November 13, 2012 9:46 PM
To: chef@lists.opscode.com
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:

jpipes@uberbox:~/repos/att-cloud/cookbook-nova$ kitchen test

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