Skip to content

Commit a5519eb

Browse files
[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
1 parent ea64263 commit a5519eb

File tree

6 files changed

+552
-506
lines changed

6 files changed

+552
-506
lines changed

helpers/GenerateResourcesAndImage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Function Get-PackerTemplatePath {
2525
$relativeTemplatePath = Join-Path (Join-Path "windows" "templates") "windows-2022.pkr.hcl"
2626
}
2727
([ImageType]::Ubuntu2004) {
28-
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-20.04.json"
28+
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-20.04.pkr.hcl"
2929
}
3030
([ImageType]::Ubuntu2204) {
3131
$relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-22.04.pkr.hcl"

images.CI/linux-and-win/azure-pipelines/ubuntu2004.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
parameters:
1919
image_type: ubuntu2004
2020
image_readme_name: Ubuntu2004-Readme.md
21-
image_template_name: ubuntu-20.04.json
21+
image_template_name: ubuntu-20.04.pkr.hcl

0 commit comments

Comments
 (0)