【发布时间】:2013-02-28 18:38:29
【问题描述】:
在查询数据包设置节点属性时,是否可以做如下操作?
我有一系列与我的本地节点['fqdn'] 属性匹配的数据包项。
是否可以将此属性动态插入到数据包查询字符串中,下面的示例不起作用,还有其他想法吗?
default['test']['attribute'] = Chef::DataBagItem.load('databagname', '<%= node[:platform_version] %>')['test']['bag']['location']
【问题讨论】:
标签: chef-infra databags