On 8 October 2010 14:29, Seth Falcon firstname.lastname@example.org wrote:
On Thu, Oct 7, 2010 at 7:10 PM, email@example.com wrote:
I have a definition that uses several files and templates to build a
tomcat base skeleton. When I call the definition from a recipe in
another cookbook it can not find the files nor templates as it is
looking in the callers cookbooks instead of the definitions.
Can I direct the definition to look in the correct place or is there an
idiomatically chef way of accomplishing this?
I think you want to specify the cookbook parameter in the resources in
define :mydef do
template “/opt/so/and/so” do
Does that help? You might look at the runit cookbook in the Opscode
for an example of using (rather involved) definitions.
This was perfect, thank you. I couldn't find anything in the
documentation about this, did I miss it? ( interested, not a jib )