如何将Powershell参数传递到Chef

问题描述 投票:0回答:1

由于某些原因,当我通过选项部分传递参数时,它不喜欢我的powershell参数。我讨厌打扰你们,但是您有什么想法可能是问题吗?预先感谢!

基本上,我要使用powershell进行的就是-->

Start-Process -FilePath "T:\QualysCloudAgent.exe" -argumentlist "CustomerId={etc..etc..etc..} ActivationId={etc..etc..etc..}"

when 'windows'
  windows_package 'QualysCloudAgent' do
    source 'T:\QualysCloudAgent.exe'
    options '-argumentlist "CustomerId={etc...etc...etc..} ActivationId={etc...etc..etc...}"'
    installer_type :custom
    action :install
  end
end

由于某些原因,当我通过选项部分传递参数时,它不喜欢我的powershell参数。我讨厌打扰你们,但是您有什么想法可能是问题吗?谢谢...

powershell chef
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.