[chef] Re: Automatic Run of a Dependency Cookbook's Default Recipe


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: Automatic Run of a Dependency Cookbook's Default Recipe
  • Date: Fri, 27 Jan 2012 17:30:49 +0530

I think X `depends` Y directive in the metadata sections ensure that the cookbook X is downloaded whenever you assign a recipe from Y cookbook. While include_recipe "X" or incluede_recipe "X::ultimate_recipe_foo" actually invokes the recipe

On Fri, Jan 27, 2012 at 5:12 PM, 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.




Archive powered by MHonArc 2.6.16.

§