【发布时间】:2016-08-02 04:47:58
【问题描述】:
我正在使用 powershell_script 食谱。我想使用的 powershell 脚本需要命令行输入。有没有办法从 chef 传递变量并将它们传递到 powershell 脚本?
input1 = "input1"
input2 = "input2"
powershell_script 'example' do
code "...\example.ps1"
end
因此,如果我的 example.ps1 将 input1 和 input2 作为命令行参数,我将如何将它们传递给:
code "...\example.ps1"
【问题讨论】:
标签: powershell chef-infra