Node doesn't show attributes inherited from role in shef

I have created a role “lan0” that applies attributes to all the nodes that
use it.

*
*
I can access these attributes from within a recipe however they are not
visible when I am using shef. Is this a feature or a bug?

*
*
*
*
lan0.json
*
*
{

  • “name”: “lan0”,*
  • “default_attributes”: {*
  • },*
  • “json_class”: “Chef::Role”,*
  • “env_run_lists”: {*
  • },*
  • “run_list”: [*
  • ],*
  • “description”: “Attributes and run_lists specific to the LAN network
    segment”,*
  • “chef_type”: “role”,*
  • “override_attributes”: {*
  • “smtp_relay_host”: “foohqmail.foo.org”,*
  • “domain”: “HQ.FOO.ORG”,*
  • “resolver”: {*
  •  "nameservers": [*
    
  •    "168.50.3.8",*
    
  •    "168.50.3.90"*
    
  •  ],*
    
  •  "search": "hq.foo.org foo.org"*
    
  • },*
  • “ntp”: {*
  •  "servers": [*
    
  •    "ntp.foo.org"*
    
  •  ]*
    
  • }*
  • }*
    }

I forgot to mention that I am running shef in client mode and I see it load
its assigned roles and recipes

On Fri, Oct 14, 2011 at 7:19 AM, Bryan Berry bryan.berry@gmail.com wrote:

I have created a role "lan0" that applies attributes to all the nodes
that use it.

*
*
I can access these attributes from within a recipe however they are not
visible when I am using shef. Is this a feature or a bug?

*
*
*
*
lan0.json
*
*
{

  • "name": "lan0",*
  • "default_attributes": {*
  • },*
  • "json_class": "Chef::Role",*
  • "env_run_lists": {*
  • },*
  • "run_list": [*
  • ],*
  • "description": "Attributes and run_lists specific to the LAN network
    segment",*
  • "chef_type": "role",*
  • "override_attributes": {*
  • "smtp_relay_host": "foohqmail.foo.org",*
  • "domain": "HQ.FOO.ORG",*
  • "resolver": {*
  •  "nameservers": [*
    
  •    "168.50.3.8",*
    
  •    "168.50.3.90"*
    
  •  ],*
    
  •  "search": "hq.foo.org foo.org"*
    
  • },*
  • "ntp": {*
  •  "servers": [*
    
  •    "ntp.foo.org"*
    
  •  ]*
    
  • }*
  • }*
    }

I can access these attributes from within a recipe however they are not visible when I am using shef. Is this a feature or a bug?

Well, feature or bug, this behavior is reproducible:

http://tickets.opscode.com/browse/CHEF-2467

IMHO, it is a bug.

Cheers,

Steve