From f853f07832a990a7d3640a09b0b00a07ebba7056 Mon Sep 17 00:00:00 2001 From: sylviamoss Date: Fri, 31 Jul 2020 17:50:36 +0200 Subject: [PATCH] add vagrant builder hcl example --- website/pages/docs/builders/vagrant.mdx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/website/pages/docs/builders/vagrant.mdx b/website/pages/docs/builders/vagrant.mdx index 681c6da0c..ef041411c 100644 --- a/website/pages/docs/builders/vagrant.mdx +++ b/website/pages/docs/builders/vagrant.mdx @@ -145,6 +145,9 @@ the Compress post-processor will not work with this builder. Sample for `hashicorp/precise64` with virtualbox provider. + + + ```json { "builders": [ @@ -159,6 +162,25 @@ Sample for `hashicorp/precise64` with virtualbox provider. } ``` + + + +```hcl +source "vagrant" "example" { + communicator = "ssh" + source_path = "hashicorp/precise64" + provider = "virtualbox" + add_force = true +} + +build { + sources = ["source.vagrant.example"] +} +``` + + + + ## A note on SSH connections Currently this builder only works for SSH connections, and automatically fills