Closed marcomancuso closed 7 years ago
That is correct, it has to be at the top level and when using the block form you have to do using the real interpolation so
node.default['a']['b'] = 'aaaa'
node.default['a']['c'] = lazy {
[
{
'a' => "#{node['a']['b']}/test",
'b' => 'sasdasd',
},
]
}
Using arrays in node attributes is always a bit awkward and I strongly recommend you avoid them. If you could replace that array with a hash of some kind then you could expand it out and use the nicer syntax.
attributes/default.rb
recipes/default.rb
ERROR Message:
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/.../recipes/default.rb