From de5546f77666467a07a5a776da31b5f0ea1bed37 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Fri, 25 Jun 2021 12:39:39 +0200 Subject: [PATCH] Try once more to switch package manager --- packer/windowsserver2019.pkr.hcl | 40 ++++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/packer/windowsserver2019.pkr.hcl b/packer/windowsserver2019.pkr.hcl index 33381b3..8f298d1 100644 --- a/packer/windowsserver2019.pkr.hcl +++ b/packer/windowsserver2019.pkr.hcl @@ -204,30 +204,30 @@ build { "scripts/Install-WinGet.ps1" ] } - // provisioner "powershell" { - // inline = [ - // "winget install mozilla.firefox", - // "winget install 7zip.7zip", - // "winget install microsoft.dotnetframework" - // ] - // // valid_exit_codes = [0, 3010] - // } provisioner "powershell" { inline = [ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12", - "Invoke-Expression ((New-Object Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" + "winget install mozilla.firefox", + "winget install 7zip.7zip", + "winget install microsoft.dotnetframework" ] + // valid_exit_codes = [0, 3010] } - provisioner "powershell" { - inline = [ - "choco config set --name=limit-output --value=LimitOutput", - "choco install -y dotnetfx", - "choco install -y 7zip.install", - "choco install -y sysinternals", - "choco install -y firefox" - ] - valid_exit_codes = [0, 3010] - } + // provisioner "powershell" { + // inline = [ + // "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12", + // "Invoke-Expression ((New-Object Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" + // ] + // } + // provisioner "powershell" { + // inline = [ + // "choco config set --name=limit-output --value=LimitOutput", + // "choco install -y dotnetfx", + // "choco install -y 7zip.install", + // "choco install -y sysinternals", + // "choco install -y firefox" + // ] + // valid_exit_codes = [0, 3010] + // } provisioner "windows-update" { }