Add version selection for chef-solo provisioner in Windows too
This commit is contained in:
parent
943563e957
commit
b1c5ccd3e2
|
@ -33,7 +33,7 @@ var guestOSTypeConfigs = map[string]guestOSTypeConfig{
|
||||||
},
|
},
|
||||||
provisioner.WindowsOSType: {
|
provisioner.WindowsOSType: {
|
||||||
executeCommand: "c:/opscode/chef/bin/chef-solo.bat --no-color -c {{.ConfigPath}} -j {{.JsonPath}}",
|
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\"",
|
installCommand: "powershell.exe -Command \". { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; Install-Project{{if .Version}} -v {{.Version}}{{end}}\"",
|
||||||
stagingDir: "C:/Windows/Temp/packer-chef-solo",
|
stagingDir: "C:/Windows/Temp/packer-chef-solo",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue