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.
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 samuel.d.darwin@gmail.comwrote:
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.
On Friday, May 2, 2014 at 8:28 AM, Ranjib Dey wrote:
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)
We did consider this case when we made that change but probably we overlooked something. A bug report would be most welcome.
--
Daniel DeLeo
On Fri May 2 09:56:59 2014, Daniel DeLeo wrote:
On Friday, May 2, 2014 at 8:28 AM, Ranjib Dey wrote:
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)
We did consider this case when we made that change but probably we overlooked something. A bug report would be most welcome.
Yeah, I believe the intent was to expand 'foo' to 'foo::default'
everywhere and avoid double counting and standardize on the more
canonical version. Looks like there's a buggy edge case.