【发布时间】:2015-03-21 04:33:43
【问题描述】:
我正在尝试传递两个值 input1 和 input2 到 recipe/default.rb。
这些值来自 jason 文件。现在我使用这些输入来解析我的模板 xml。
template "/tmp/temp_chef_sample.xml" do
source "temp_chef_sample.xml.erb"
variables( :fsIP => node[:hostname], :fsname => node[:ipaddress], :path=> node[:input1], :value=> node[:input2] )
end
我有两个问题。
- 如何在属性列表中添加属性“路径”和“值”?
- 如何在不使用 json 的情况下填充它们
【问题讨论】:
标签: attributes chef-infra