packer-cn/post-processor
Adrien Delorme 2af40c762b
HCL2: pass on builder type and name (#8956)
* sets `packer_build_name` and `packer_builder_type` variables for builder provisioners and post-processors in HCL2
* allows to use the new `${source.type}` and `${source.name}` variables in HCL2
* fixes #8932 

Note that the common.PackerConfig is used everywhere and was not set for HCL2, this had some implications: 

For #8923 you can see the issue here:

dde74232f2/builder/lxd/config.go (L61-L63)

More random examples of where this could cause an issue :

0785c2f6fc/provisioner/ansible-local/provisioner.go (L380-L381)

b4efd13a4d/builder/amazon/ebs/builder.go (L232-L236)



* [All references to PackerConfig.PackerBuildName](https://sourcegraph.com/github.com/hashicorp/packer@ff6a039d5bb45e34ff761d9c52e8b98972288447/-/blob/common/packer_config.go#L7:2&tab=references)

* [All references to PackerConfig.PackerBuilderType](https://sourcegraph.com/github.com/hashicorp/packer@ff6a039d5bb45e34ff761d9c52e8b98972288447/-/blob/common/packer_config.go#L8:2&tab=references)
2020-04-09 11:14:37 +02:00
..
alicloud-import Update post-processor.go 2020-03-17 16:37:16 +01:00
amazon-import add max_retries option to aws builders 2020-02-07 16:36:14 +01:00
artifice clarify artifice postprocessor wording to make it clear that it will not clean up old artifacts (#8676) 2020-01-31 16:45:18 +01:00
checksum Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
compress Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
digitalocean-import post-processor/digitalocean-import/post-processor.go: replace deprecated session.New() with session.NewSession() 2020-03-03 11:53:40 -08:00
docker-import build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
docker-push build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
docker-save build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
docker-tag Fix regression in docker-tag post-processor (#8593) 2020-01-13 11:41:52 +01:00
exoscale-import build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
googlecompute-export fix #8679 with source_image_project_id as list 2020-02-06 10:30:04 +01:00
googlecompute-import Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
manifest HCL2: pass on builder type and name (#8956) 2020-04-09 11:14:37 +02:00
shell-local Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
ucloud-import Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
vagrant Add golangci-lint to project (#8686) 2020-02-14 11:42:29 -05:00
vagrant-cloud Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
vsphere Fix gosimple S1025 linting errors (#8838) 2020-03-04 15:31:30 -05:00
vsphere-template workaround for mapstructure-to-hcl2 and booleans 2020-01-07 16:58:40 -07:00