Commit 8c3b8c68 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #1997 from justincampbell/vagrant-post-processor-execution-order

Clarify doubly-nested array use in post-processors
parents b4ae3fbd 23ac351c
...@@ -78,31 +78,34 @@ the box will not be uploaded to the Vagrant Cloud. ...@@ -78,31 +78,34 @@ the box will not be uploaded to the Vagrant Cloud.
## Use with Vagrant Post-Processor ## Use with Vagrant Post-Processor
You'll need to use the Vagrant post-processor before using this 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 An example configuration is below. Note the use of a doubly-nested array, which
the execution order. ensures that the Vagrant Cloud post-processor is run after the Vagrant
post-processor.
```javascript ```javascript
{ {
"variables": { "variables": {
"version": "", "version": "",
"cloud_token": "" "cloud_token": ""
}, },
"builders": [{ "builders": [{
// ... // ...
}], }],
"post-processors": [ "post-processors": [
[{ [
"type": "vagrant", {
"include": ["image.iso"], "type": "vagrant",
"vagrantfile_template": "vagrantfile.tpl", "include": ["image.iso"],
"output": "proxycore_{{.Provider}}.box" "vagrantfile_template": "vagrantfile.tpl",
"output": "proxycore_{{.Provider}}.box"
}, },
{ {
"type": "vagrant-cloud", "type": "vagrant-cloud",
"box_tag": "hashicorp/precise64", "box_tag": "hashicorp/precise64",
"access_token": "{{user `cloud_token`}}", "access_token": "{{user `cloud_token`}}",
"version": "{{user `version`}}" "version": "{{user `version`}}"
}] }
] ]
]
} }
``` ```
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