From 4abf97ab13928c4731cb243a72225c55436832fc Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Thu, 16 May 2024 19:12:29 +0200 Subject: [PATCH] Add ubuntu 24.04 to custom image scripts generator (#9868) --- helpers/GenerateResourcesAndImage.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helpers/GenerateResourcesAndImage.ps1 b/helpers/GenerateResourcesAndImage.ps1 index f7e5d1216..58e9698f8 100644 --- a/helpers/GenerateResourcesAndImage.ps1 +++ b/helpers/GenerateResourcesAndImage.ps1 @@ -5,7 +5,8 @@ enum ImageType { Windows2022 = 2 Ubuntu2004 = 3 Ubuntu2204 = 4 - UbuntuMinimal = 5 + Ubuntu2404 = 5 + UbuntuMinimal = 6 } Function Get-PackerTemplatePath { @@ -30,6 +31,9 @@ Function Get-PackerTemplatePath { ([ImageType]::Ubuntu2204) { $relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-22.04.pkr.hcl" } + ([ImageType]::Ubuntu2404) { + $relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-24.04.pkr.hcl" + } ([ImageType]::UbuntuMinimal) { $relativeTemplatePath = Join-Path (Join-Path "ubuntu" "templates") "ubuntu-minimal.pkr.hcl" }