Skip to content

Commit

Permalink
Merge pull request hashicorp#9683 from hashicorp/vagrant_hcl2_example
Browse files Browse the repository at this point in the history
Add Vagrant builder HCL2 example
  • Loading branch information
SwampDragons authored Jul 31, 2020
2 parents 6698be6 + f853f07 commit 7967b78
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions website/pages/docs/builders/vagrant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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
Expand Down

0 comments on commit 7967b78

Please sign in to comment.