[chef] Working with binary cookbook_file files


Chronological Thread 
  • From: Luke Biddell < >
  • To:
  • Subject: [chef] Working with binary cookbook_file files
  • Date: Tue, 5 Oct 2010 10:43:32 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=lEC79w3d1tpZurejtn3Py/54JdT3Bd1t99H+ATJ4ku0K5meFjECq3B0Fyf7l/hKAOH KLvzHDci5Fz6vx4lf7YvufRDLkqYNPxyDSZXVOmWhFDgQU5mZ5tTfTOcH9Td6HnBFwuZ U+Igopzzq/OhoqLgJHXF+zcg+rvwO7Tw/moPI=

I'm building a custom jetty cookbook to deploy some internal software here.

That software using jni so I have to set the LD_LIBRARY_PATH and bundle some .so files for linux.

I've added my .so files to cookbook/files/linux-i686/libblah.so

In my recipe I refer to them like this...


cookbook_file "#{node[:jetty][:libraries_path]}/libblah.so" do
  source "#{node[:os]}-#{node[:kernel][:machine]}/libblah.so"
end


...and I do "knife cookbook upload custom-jetty.


If I go to the admin console on the chef server, I don't see files listed under the cookbook, I only see "Attribute Files", "Recipe Files" and "Template Files".


On the machine that's running the chef-client, when my custom-jetty cookbook runs, I get the error...

    ERROR: Re-raising exception: Chef::Exceptions::FileNotFound - cookbook custom-jetty does not contain file files/linux-i686/libblah.so

The path looks good to me, so I need to start digging. Where in the chef server internals should I look to confirm that the files have uploaded correctly?

Thanks for any help you can give.




Archive powered by MHonArc 2.6.16.

§