Open ghost opened 3 years ago
This would be useful to add just like the EBS builder has already. Preferrably there is a run_tags
and a normal tags
and a run_custom_attributes
and a normal custom_attributes
added. My organization does backup based off of Vsphere tags and it is picking up the packer builds for backing up currently which is taking up space and costing my organization time and money to store and clean up these from time to time. Adding a tag during the build process would negate this from happening.
Related functionality in EBS builder
This issue was originally opened by @dbond007 as hashicorp/packer#10147. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request. If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Description
Allow the adding of tags to templates within vsphere/esxi like available within terraform.
Use Case(s)
Allows adding tags to templates so you can add information about the template for example build date, OS version, roles, build version, builder etc So information on the template can be extracted instead of needing to encode as much of this in the template name or external database.
Potential configuration
see references
Potential References
https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/tag_category https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/tag https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/custom_attribute