use flag -version instead of -v to install chef-solo on Windows

This commit is contained in:
Skyler Nesheim 2017-09-18 09:42:56 -05:00
parent 4ce381cae7
commit 52d3137b08
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ var guestOSTypeConfigs = map[string]guestOSTypeConfig{
},
provisioner.WindowsOSType: {
executeCommand: "c:/opscode/chef/bin/chef-solo.bat --no-color -c {{.ConfigPath}} -j {{.JsonPath}}",
installCommand: "powershell.exe -Command \". { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; Install-Project{{if .Version}} -v {{.Version}}{{end}}\"",
installCommand: "powershell.exe -Command \". { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; Install-Project{{if .Version}} -version {{.Version}}{{end}}\"",
stagingDir: "C:/Windows/Temp/packer-chef-solo",
},
}