Merge pull request #9683 from hashicorp/vagrant_hcl2_example

Add Vagrant builder HCL2 example
This commit is contained in:
Megan Marsh 2020-07-31 10:15:28 -07:00 committed by GitHub
commit 7967b788d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -145,6 +145,9 @@ the Compress post-processor will not work with this builder.
Sample for `hashicorp/precise64` with virtualbox provider.
<Tabs>
<Tab heading="JSON">
```json
{
"builders": [
@ -159,6 +162,25 @@ Sample for `hashicorp/precise64` with virtualbox provider.
}
```
</Tab>
<Tab heading="HCL2">
```hcl
source "vagrant" "example" {
communicator = "ssh"
source_path = "hashicorp/precise64"
provider = "virtualbox"
add_force = true
}
build {
sources = ["source.vagrant.example"]
}
```
</Tab>
</Tabs>
## A note on SSH connections
Currently this builder only works for SSH connections, and automatically fills