[chef] Re: Role attributes are not getting propogated as expected


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Re: Role attributes are not getting propogated as expected
  • Date: Wed, 10 Sep 2014 04:12:58 -0700 (PDT)


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.

§