On Friday, January 24, 2014 at 13:25, wrote:
Hello chefs,We are testing our chef setup with our infrastructure and came across aninteresting situation. We have separate roles for each application, to setupapplication specific files and environment. These roles have exact same runlistand override exact same set of attributes (with different values, of course).For testing, we assigned all the roles to one node.Now running chef-client on the server resulted in only 1 execution of therunlist. So we thought that it might be because runlist being resolved to sameset of recipes for all the roles. We then created different recipe for eachapplication and added it to the corresponding role. Now the roles consist ofdifferent recipes but still override same set of attributes. Chef-client nowruns all the recipes but using the attribute values overridden by the *lastrole assigned* to the node i.e. all the roles are executed using same attributevalues.I have tried many different combinations but none of them lead to expectedbehaviour i.e. ability to run different roles, with same runlist and overridingsame attributes, on the same node.Any suggestions are highly appreciated.Cheers
Archive powered by MHonArc 2.6.16.