Problem: Docs should mention the comma after `"builders": [...]`

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.
This commit is contained in:
stefanlasiewski 2014-07-18 10:15:05 -07:00
parent 79d55c20b3
commit 47f073c442
1 changed files with 2 additions and 1 deletions

View File

@ -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