Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Clearly document built in template variables #5382

Closed
rickard-von-essen opened this issue Sep 25, 2017 · 9 comments · Fixed by #8770
Closed

docs: Clearly document built in template variables #5382

rickard-von-essen opened this issue Sep 25, 2017 · 9 comments · Fixed by #8770

Comments

@rickard-von-essen
Copy link
Collaborator

The docs doesn't clearly enumerate the builtin template variables such as {{ .Name }} (and possibly some more).

@rickard-von-essen
Copy link
Collaborator Author

@brianeclow
Copy link

It would be grand to have this documentation. Especially, as I am attempting to find a suitable replacement for the previous template variable .Provider.

@vfiftyfive
Copy link

This would be very useful indeed. Any taker?

@evancox10
Copy link

Does the templating engine also support conditional logic as shown here? If so, that would also be good to document. (Or at least reference that page, possibly with a few packer-specific examples.)

@Mr-Nietzsche
Copy link

Mr-Nietzsche commented May 6, 2018 via email

@SwampDragons
Copy link
Contributor

@Mr-Nietzsche I'm pretty sure to unsubscribe from a github issue you have to do so via the unsubscribe button in the issue UI.

@evancox10 Yes, you can use that conditional logic and it's a good idea to document it somewhere. I know the puppet docs have some examples because the defaults contain some of this kind of logic: https://www.packer.io/docs/provisioners/puppet-masterless.html but we could probably link these docs in our general discussion of how the template engine works.

@janoskut
Copy link

Why has this been closed? The {{ .Name }} built-in variable is still not mentioned in the docs.

@rickard-von-essen
Copy link
Collaborator Author

@noshky this isn't closed..?

@ghost
Copy link

ghost commented Mar 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants