Merge pull request #7458 from hashicorp/update-vagrant-provider-doc

update vagrant provider documentation
This commit is contained in:
Megan Marsh 2019-04-02 11:08:33 -07:00 committed by GitHub
commit e4842b69b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 2 deletions

View File

@ -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"
}
]
}
```