{{user}} is not allowed in variables section

https://github.com/hashicorp/packer/issues/1942
This commit is contained in:
Marc Tamsky 2017-04-07 14:19:31 -07:00 committed by GitHub
parent 92ceff4b96
commit 52060e41bf
1 changed files with 3 additions and 2 deletions

View File

@ -60,8 +60,9 @@ validation will fail.
Using the variables is extremely easy. Variables are used by calling the user
function in the form of <code>{{user \`variable\`}}</code>. This function can be
used in *any value* within the template, in builders, provisioners, *anything*.
The user variable is available globally within the template.
used in *any value* within the template; in builders, provisioners, *anywhere
outside the `variables` section*. The user variable is available globally
within the rest of the template.
## Environment Variables