[ubuntu] Change packer templates from json to hcl (#8991)

* [ubuntu] Change packer tempaltes from json to hcl

* Add packer init

* Fix variable types for Ubuntu20 template
This commit is contained in:
Shamil Mubarakshin
2023-12-13 09:19:03 +01:00
committed by GitHub
parent ea64263b41
commit a5519ebed0
6 changed files with 552 additions and 506 deletions

View File

@@ -25,7 +25,7 @@ Function Get-PackerTemplatePath {
$relativeTemplatePath = Join-Path (Join-Path "windows" "templates") "windows-2022.pkr.hcl"
}
([ImageType]::Ubuntu2004) {
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-20.04.json"
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-20.04.pkr.hcl"
}
([ImageType]::Ubuntu2204) {
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-22.04.pkr.hcl"