From 8810d0445edd008a82ff6317ce23a8a4ac4e7ebf Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Tue, 13 Jun 2017 17:14:28 -0400 Subject: [PATCH] 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 --- website/source/docs/post-processors/vagrant-cloud.html.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/source/docs/post-processors/vagrant-cloud.html.md b/website/source/docs/post-processors/vagrant-cloud.html.md index 9af3edac2..f0e6f75a2 100644 --- a/website/source/docs/post-processors/vagrant-cloud.html.md +++ b/website/source/docs/post-processors/vagrant-cloud.html.md @@ -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`}}" } ] ]