Set packer builder type with env variable 28/66528/3 v0.7.2
authorAnil Belur <abelur@linuxfoundation.org>
Sat, 16 Jan 2021 05:11:31 +0000 (15:11 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sat, 16 Jan 2021 07:31:46 +0000 (17:31 +1000)
commitcc035619ac1673a5b5ea2f6bfb843eac75ea4a9d
tree812e95dd35a8935045f2d56d3aac54fb0bc3f212
parent6485404dda02505f48cef60d9aafd726c3aacfa8
Set packer builder type with env variable

Using the -only CLI option for packer build does not work as
expected. The #CR 90dd675df482a8 (global-jjb) submitted with
common-packer v0.7.0 fails to build packer jobs because of a
bug in the packer build CLI.

The `-only` option packer build CLI does not set the cloud
provider name/type as per the documentation. The alternative
is to use an environment variable that is passed through the
packer job and can be reference in the packer templates.

Issue: https://github.com/hashicorp/packer/issues/10495
Change-Id: I1c1e2e7c5545df5a2a374a02714634a0f4086378
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/set-packer-builder-type-with-env-var-490b7672b07486bc.yaml [new file with mode: 0644]
templates/builder.json