Reputation: 139
I am using Chef for my production environment. I am aware of the standard attribute precedence that Chef has implemented, defined here:
http://docs.chef.io/attributes.html#attribute-precedence
The default attribute presedence is as follows:
Attribute files -> Node / Recipe -> Environment -> Roles
But what happens when I have a run_list containing multiple roles? Example:
"run_list": [ "role[webserver]", "role[dbserver]" ]
Which of the above default_attributes (defined in both roles) has precedence over the other?
Thanks!
Upvotes: 2
Views: 1386
Reputation: 78
This depends on how your attribute structures are defined in your roles. http://docs.chef.io/attributes.html#about-deep-merge
Upvotes: 1