Skip to content

Commit

Permalink
Use 64-bit version of Packer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Finkelshteyn committed Sep 26, 2019
1 parent c66d844 commit 3b8fb24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions AppVeyorBYOC-Common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@ function GetPackerPath {
}
else {
$packerFolder = CreateTempFolder
$zipPath = Join-Path $packerFolder "packer_$($packerVersion)_windows_amd64.zip"
$zipPath = Join-Path $packerFolder "packer_$($packerVersion)_amd64.zip"
Write-Host "Downloading Packer version $packerVersion to temporary folder..." -ForegroundColor DarkGray
$currentSecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol
$zipFile = if ($isLinux) {"packer_$($packerVersion)_linux_386.zip"} elseif ($isMacOS) {"packer_$($packerVersion)_darwin_386.zip"} else {"packer_$($packerVersion)_windows_386.zip"}
$zipFile = if ($isLinux) {"packer_$($packerVersion)_linux_amd64.zip"} elseif ($isMacOS) {"packer_$($packerVersion)_darwin_amd64.zip"} else {"packer_$($packerVersion)_windows_amd64.zip"}
[System.Net.ServicePointManager]::SecurityProtocol = "Tls12"
(New-Object Net.WebClient).DownloadFile("https://releases.hashicorp.com/packer/$packerVersion/$zipFile", $zipPath)
[System.Net.ServicePointManager]::SecurityProtocol = $currentSecurityProtocol
Expand Down
4 changes: 3 additions & 1 deletion minimal-windows-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@
"type": "hyperv-iso",
"boot_wait": "0s",
"boot_command": [
"<enter><wait><enter><wait><enter><wait><enter>"
"<esc>",
"<enter>",
"<enter>"
],
"communicator": "winrm",
"cpus": 2,
Expand Down

0 comments on commit 3b8fb24

Please sign in to comment.