- From: Ash Berlin <
>
- To:
- Subject: [chef] Re: Automatic Run of a Dependency Cookbook's Default Recipe
- Date: Fri, 27 Jan 2012 11:55:55 +0000
On 27 Jan 2012, at 11:42, Dominique Poulain wrote:
>
Hi,
>
>
The Chef Wiki states that:
>
>
"listing a cookbook as a dependency in metadata.rb will automatically run
>
that
>
cookbook's default recipe (if it exists), even if this is the only place the
>
cookbook is referenced."
>
>
(<http://wiki.opscode.com/display/chef/Metadata#Metadata-depends>)
>
>
Yet, this wasn't the behaviour I observed in tests I ran: if I only
>
referenced
>
a cookbook as a dependency in metadata.rb, no recipe from it would ever run.
>
>
Does that mean the Chef wiki description is obsolete? IMHO, things are saner
>
that way (with no default recipe being run), but I'd like to make sure
>
they're
>
going to stay that way :-)
>
>
Would someone please be able to confirm this?
>
>
Cheers,
>
>
d.
Yes, this is incorrect. Putting the cookbook in the metadata as a dep just
means that the cookbook is available on the node for use with cookbook_file,
include_recipe, et al.
-ash
Archive powered by MHonArc 2.6.16.