From 073a813e880aef531fa5b0acd4e7eefb7192f3ea Mon Sep 17 00:00:00 2001 From: stefanlasiewski Date: Fri, 18 Jul 2014 10:15:05 -0700 Subject: [PATCH] Problem: While running through the getting-started examples, I ran into a strange error: packer $ packer validate example.json Failed to parse template: Error in line 16, char 2: invalid character '"' after object key:value pair "provisioners": [{ packer $ The error was not immediately obvious, as this is my first time working with Packer, and like many users this also happens to be my first time working with JSON. Solution: I was missing a comma after the 'builders' configuration. I'm sure this is a common problem, so let's specifically mention that in the document. --- website/source/intro/getting-started/provision.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/source/intro/getting-started/provision.html.markdown b/website/source/intro/getting-started/provision.html.markdown index 4276ae089..437605b08 100644 --- a/website/source/intro/getting-started/provision.html.markdown +++ b/website/source/intro/getting-started/provision.html.markdown @@ -60,7 +60,8 @@ of time to initialize. The sleep makes sure that the OS properly initializes. Hopefully it is obvious, but the `builders` section shouldn't actually contain "...", it should be the contents setup in the previous page -of the getting started guide. +of the getting started guide. Also note the comma after the `"builders": [...]` +array, which was not necessary in the previous lesson. To configure the provisioners, we add a new section `provisioners` to the template, alongside the `builders` configuration. The provisioners section