mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-21 15:31:41 -04:00
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
This commit is contained in:
@@ -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`}}"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user