Is it possible to do the following when querying a data bag to set a node attribute?
I have a series of data bag items that match my local node['fqdn'] attributes.
Is it possible to dynamically insert this attribute into a data bag query string, the below example doesnt work, any other ideas ?
default['test']['attribute'] = Chef::DataBagItem.load('databagname', '<%= node[:platform_version] %>')['test']['bag']['location']