mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -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:
parent
a9fba0c1d2
commit
8810d0445e
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Reference in a new issue