From 52060e41bfc8d6fa82257a974fbf0eecfb4b4059 Mon Sep 17 00:00:00 2001 From: Marc Tamsky Date: Fri, 7 Apr 2017 14:19:31 -0700 Subject: [PATCH] {{user}} is not allowed in variables section https://github.com/hashicorp/packer/issues/1942 --- website/source/docs/templates/user-variables.html.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/source/docs/templates/user-variables.html.md b/website/source/docs/templates/user-variables.html.md index 0120a4cac..8ed42c921 100644 --- a/website/source/docs/templates/user-variables.html.md +++ b/website/source/docs/templates/user-variables.html.md @@ -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 {{user \`variable\`}}. 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