Feat: Rewrite packer jobs to work with hcl2 format 75/71875/1 v0.88.0
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 28 Jun 2023 02:20:36 +0000 (12:20 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 28 Jun 2023 02:31:34 +0000 (12:31 +1000)
commit907c06f064252914e44b92476ea4b12c07d99ebb
treefe3d1978256d7c1472c26f5098db6ee48c776e4f
parent37f05c74e577373c062563634176f8435c6a939a
Feat: Rewrite packer jobs to work with hcl2 format

Rewrite packer jobs to work with HCL2 format.

As of packer version 1.7.0 HCL2 is the preferred way to write Packer
templates. HCL2 preserves existing workflows while leveraging HCL2’s
advanced features like variable interpolation and configuration
composability.

Upgrade packer version to v1.9.1. JSON format templates are
deprecated and no longer work with packer version > 1.9.x.
Project specific templates require to be upgraded to HCL2 format.

Support for '.json' templates will be removed from common-packer in
subsequent releases. Therefore, the jobs are expected to work with
older templates.

Ref: https://gerrit.linuxfoundation.org/infra/c/releng/common-packer/+/71859
Issue: RELENG-4764
Change-Id: Ie591343ac87caca217ff7125a84f4b769bb3a40c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/lf-ci-jobs.yaml
releasenotes/notes/Update-packer-jobs-to-hcl2-c9c8292b27cc785f.yaml [new file with mode: 0644]
shell/packer-build.sh
shell/packer-validate.sh