update vagrant provider

add clarification on provider when source have more than 1 provider.
also add an example.
pull/7458/head
Alvaro Miranda Aguilera 7 years ago committed by GitHub
parent 874a4ff8c7
commit dbe3b361b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,8 +62,8 @@ one, by using `global_id` instead of `source_box`.
"packer_" plus your buildname.
- `provider` (string) - The vagrant [provider](docs/post-processors/vagrant.html).
This parameter is required to use vagrant builder with the `vagrant-cloud`
post-processor. Defaults to unset.
This parameter is required when `source_path` have more than one provider,
or when using `vagrant-cloud` post-processor. Defaults to unset.
- `checksum` (string) - The checksum for the .box file. The type of the
checksum is specified with `checksum_type`, documented below.
@ -125,3 +125,21 @@ one, by using `global_id` instead of `source_box`.
- `skip_package` (bool) - if true, Packer will not call `vagrant package` to
package your base box into its own standalone .box file.
## Example
Sample for `hashicorp/precise64` with virtualbox provider.
```
{
"builders": [
{
"communicator": "ssh",
"source_path": "hashicorp/precise64",
"provider": "virtualbox",
"add_force": true,
"type": "vagrant"
}
]
}
```

Loading…
Cancel
Save