website: Recommend vagrantcloud version from var

When using multiple builders, the post-processor could yield different results for the `{{timestamp}}` interpolation.

By using a variable instead, the version will be consistent across all builders.

https://github.com/hashicorp/packer/issues/4973
pull/5011/head
Justin Campbell 9 years ago
parent a9fba0c1d2
commit 8810d0445e

@ -93,7 +93,8 @@ post-processor.
```json
{
"variables": {
"cloud_token": "{{ env `ATLAS_TOKEN` }}"
"cloud_token": "{{ env `ATLAS_TOKEN` }}",
"version": "1.0.{{timestamp}}"
},
"post-processors": [
[
@ -107,7 +108,7 @@ post-processor.
"type": "vagrant-cloud",
"box_tag": "hashicorp/precise64",
"access_token": "{{user `cloud_token`}}",
"version": "1.0.{{timestamp}}"
"version": "{{user `version`}}"
}
]
]

Loading…
Cancel
Save