Specify different sets of attributes inside cookbook

hi

I want to maintain attributes inside cookbook, it it anyway to specify that
one node/domain will use one set of attributes while other use other one ?

Does something like File Specificity work for attibutes ?

you can use a case statement inside the attrib file

case fqdn
when "myhostname.mydomainname"
default[some_attrib] = true
else
default[some_attrib] = false
end

On Aug 3, 2010, at 5:49 AM, le.huy@ingdirect.es le.huy@ingdirect.es wrote:

hi

I want to maintain attributes inside cookbook, it it anyway to specify that
one node/domain will use one set of attributes while other use other one ?

Does something like File Specificity work for attibutes ?