+++ /dev/null
----
-fixes:
- - |
- Set packer builder type with environment 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.
-
- Ref:
- https://github.com/hashicorp/packer/issues/10495
"distro": null,
"flavor": "v2-highcpu-1",
"ssh_user": null,
- "ssh_proxy_host": "",
- "cloud_type": "{{env `PACKER_BUILDER`}}"
+ "ssh_proxy_host": ""
},
"builders": [
{
- "name": "{{user `cloud_type`}}",
+ "name": "openstack",
"image_name": "ZZCI - {{user `distro`}} - builder - {{user `arch`}} - {{isotime \"20060102-150405.000\"}}",
"instance_name": "{{user `distro`}}-builder-{{uuid}}",
"source_image_name": "{{user `base_image`}}",
- "type": "{{user `cloud_type`}}",
+ "type": "openstack",
"region": "{{user `cloud_region`}}",
"networks": ["{{user `cloud_network`}}"],
"user_data_file": "{{user `cloud_user_data`}}",