From 23ac351c85082e7098f8d523ba90288265c04283 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Tue, 24 Mar 2015 15:41:17 -0400 Subject: [PATCH] Clarify doubly-nested array use in post-processors Expands on the description of the Vagrant and Vagrant Cloud post-processors needing to be in a doubly-nested array. Also, separate the two arrays in the JSON sample so they stick out more (and reformat the JSON). --- .../vagrant-cloud.html.markdown | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/website/source/docs/post-processors/vagrant-cloud.html.markdown b/website/source/docs/post-processors/vagrant-cloud.html.markdown index 843e5c511..374e8c73a 100644 --- a/website/source/docs/post-processors/vagrant-cloud.html.markdown +++ b/website/source/docs/post-processors/vagrant-cloud.html.markdown @@ -78,31 +78,34 @@ the box will not be uploaded to the Vagrant Cloud. ## Use with Vagrant Post-Processor You'll need to use the Vagrant post-processor before using this post-processor. -An example configuration is below. Note the use of the array specifying -the execution order. +An example configuration is below. Note the use of a doubly-nested array, which +ensures that the Vagrant Cloud post-processor is run after the Vagrant +post-processor. ```javascript { - "variables": { - "version": "", - "cloud_token": "" - }, - "builders": [{ + "variables": { + "version": "", + "cloud_token": "" + }, + "builders": [{ // ... - }], - "post-processors": [ - [{ - "type": "vagrant", - "include": ["image.iso"], - "vagrantfile_template": "vagrantfile.tpl", - "output": "proxycore_{{.Provider}}.box" + }], + "post-processors": [ + [ + { + "type": "vagrant", + "include": ["image.iso"], + "vagrantfile_template": "vagrantfile.tpl", + "output": "proxycore_{{.Provider}}.box" }, { - "type": "vagrant-cloud", - "box_tag": "hashicorp/precise64", - "access_token": "{{user `cloud_token`}}", - "version": "{{user `version`}}" - }] + "type": "vagrant-cloud", + "box_tag": "hashicorp/precise64", + "access_token": "{{user `cloud_token`}}", + "version": "{{user `version`}}" + } ] + ] } ```