Idea: add template metadata to provisioner as a data source #5589
Replies: 2 comments 7 replies
-
This would improve the user experience! I'm curious if we need a manual override, so that users can easily publish different templates with different version tags. Let's say we know that a published revision
Do you think that we could support a nested structure, so that it bundles all version properties together under |
Beta Was this translation helpful? Give feedback.
-
+1 Our company is using Artifactory and migrating from Coder v1 to v2. Being able to get tags dynamically is a feature we would really like to see as well. |
Beta Was this translation helpful? Give feedback.
-
In the docker-image-builds example template](https://github.com/coder/coder/tree/main/examples/templates/docker-image-builds#updating-images) template, there is a manual required step of updating the image tag in the Terraform code. Without this step, the Terraform provider doesn't rebuild the image.
What would make intuitive sense here is to provide a data source that exposes the template version identifier to the provisioner so that the manual step above becomes automated:
There are some other use-cases I can also see this enabling though:
I'd imagine the schema to look something like the following:
name
(string) The name of the templateid
(string) The UUID of the templateversion_id
(string) The UUID of the active template versionversion
(string) The SHA-like representation of the active template version IDversion_friendly
(string) The human-readable UUID (e.g. fantastic_narwhal7) of the active template version IDThoughts?
Beta Was this translation helpful? Give feedback.
All reactions