Overriding attributes in the recipe
问题 Let's say I have a default attribute in a cookbook: default.nginx_upstreams = { 'service1' => ['service1.server.com'], 'service2' => ['service2.server.com'], } Then it gets modified and overridden in roles and environments until it finally gets to my recipe. There, I compute some additional services that I would like to add to the attribute. If I do something like this: node.nginx_upstreams.merge! {'service3' => ['service3.server.com']} then when I try to use the attribute in my template, I