From 6068320752eabc490147d98b2b7e7ea93aa57377 Mon Sep 17 00:00:00 2001 From: egazrigh Date: Wed, 13 Jun 2018 15:52:50 +0200 Subject: [PATCH] Update example for -var-file On Windows version v1.2.4, cannot use -var-file= syntax invalid value "" for flag -var-file: open : The system cannot find the file specified. Have to use -var-file .\file syntax --- website/source/docs/templates/user-variables.html.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/source/docs/templates/user-variables.html.md b/website/source/docs/templates/user-variables.html.md index bcc22339b..8c3c8dfc9 100644 --- a/website/source/docs/templates/user-variables.html.md +++ b/website/source/docs/templates/user-variables.html.md @@ -176,7 +176,10 @@ variable values. Assuming this file is in `variables.json`, we can build our template using the following command: ``` text +On Linux : $ packer build -var-file=variables.json template.json +On Windows : +packer build -var-file variables.json template.json ``` The `-var-file` flag can be specified multiple times and variables from multiple