- From: "Mark J. Reed" <
>
- To:
- Subject: [chef] Re: Overriding cookbook attributes in a role - am I doing it wrong?
- Date: Tue, 23 Nov 2010 11:45:12 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=QKPIpQmTOT2ODEli8idRxDHNu5eJXhjyiaWYc+CeoeDGXBnYXtPr/c+Q/0K/C+ruJq o9nImtqRH5t0CthjO8GrB109Nnt9jsTXAc9ZfPCye7r1tCxIFujlSZpWMdODqUgbZyF5 xiPVk2gX1S84uR+HzxKWucCjGdNN9OlR5lhYY=
On Tue, Nov 23, 2010 at 2:47 AM, Mike Williams
<
>
wrote:
>
I have an attribute default set in a cookbook attributes file:
>
which I'm attempting to override in a role:
>
I then apply that role to a node:
A node doesn't get its attributes updated until chef-client runs on
that node. Did that happen between the role change and the "knife
node show?"
On Tue, Nov 23, 2010 at 11:36 AM, Noah Kantrowitz
<
>
wrote:
>
Shouldn't that be override_attributes, not default_attributes?
Depending on the ultimate goal, an override may make more sense, but
either works in this case: role "defaults" override attributes file
"defaults"; see the precedence chart here:
http://wiki.opscode.com/display/chef/Attributes#Attributes-SettingAttributes
--
Mark J. Reed
<
>
Archive powered by MHonArc 2.6.16.