- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Role attributes are not getting propogated as expected
- Date: Wed, 10 Sep 2014 08:24:03 -0700
What version of chef-client is this? If it’s 11.x, can you add `pp
node.debug_value(:webmanager)` to a recipe and see what it says?
--
Daniel DeLeo
On Wednesday, September 10, 2014 at 4:12 AM,
wrote:
>
>
Interestingly it appears that precedence behaves in a different manner than
>
I
>
understood.
>
>
We have many attributes in the attribute tree node[:webmanager] defined as
>
default attribute in cookbook.
>
>
E.g.
>
node[:webmanager][:software] --> subtree contains 3 attributes.
>
node[:webmanager][:monitor] --> subtree contains 10 attributes.
>
node[:webmanager][:Core] --> subtree contains 7 attributes.
>
node[:webmanager][:ssl] --> subtree contains 5 attributes.
>
>
In this case if we set only the following 3 attributes at role level as
>
override type, it's not getting assigned properly during the compile &
>
converge
>
phase. Only in the end of client run it's getting updated to node object
>
tree.
>
node[:webmanager][:features][:WindowsServices]
>
node[:webmanager][:features][:Core]
>
node[:webmanager][:features][:Gui]
>
>
Is this an expected behavior? Can't we override only one or two attributes
>
in
>
3rd level subtree of a main attribute tree using precedence?
>
>
~Thanks
Archive powered by MHonArc 2.6.16.