Commit 47f073c4 authored by stefanlasiewski's avatar stefanlasiewski

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.
parent 79d55c20
...@@ -60,7 +60,8 @@ of time to initialize. The sleep makes sure that the OS properly initializes. ...@@ -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 Hopefully it is obvious, but the `builders` section shouldn't actually
contain "...", it should be the contents setup in the previous page 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 To configure the provisioners, we add a new section `provisioners` to the
template, alongside the `builders` configuration. The provisioners section template, alongside the `builders` configuration. The provisioners section
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment