[chef] Re: default recipe


Chronological Thread 
  • From: Ranjib Dey < >
  • To: " " < >
  • Subject: [chef] Re: default recipe
  • Date: Fri, 2 May 2014 08:28:53 -0700

yes, recipe[foo] implies recipe[foo::default]. but the double mention in Recipes is a bug.
 earlier recipes field used to not include recipes incorporated via include_recipe method. which was fixed recently (and may be during that effort this bug was introduced)




On Fri, May 2, 2014 at 7:55 AM, Sam Darwin < " target="_blank"> > wrote:
Hi,

Is the default recipe synonymous with the cookbook name?  For example,
"recipe[sudo]" is the same as "recipe[sudo::default]" ?

I am applying some cookbooks via a role.  In the role, it says "recipe[sudo]" .
 not "recipe[sudo::default]".

On a new test environment, with the very latest versions of open source chef,
this happens:

Node Name:   server.example.com
Environment: _default
FQDN:         server.example.com
IP:          54.198.114.2
Run List:    role[production]
Roles:       production, monclient
Recipes:     miscellaneous, sudo, ssh-mini, user::data_bag, nagios::client,
munin::client, miscellaneous::default, sudo::default, ssh-mini::default,
nagios::client_package
Platform:    ubuntu 12.04
Tags:

Notice how some recipes are mentioned twice now...  both sudo and sudo::default
are in the run_list.     both miscellaneous and miscellaneous::default are in
the list.   That seems to be happening automatically.     It's expanding, and
duplicating, the recipes.     I believe this used to be more behind-the-scenes,
and not shown in the run_list twice.




Archive powered by MHonArc 2.6.16.

§