From 0aa4d7117d2c1b37c75dcee18c58169d391f04af Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 11 Aug 2020 16:28:02 -0700 Subject: [PATCH] hcl example for breakpoint provisioner --- .../pages/docs/provisioners/breakpoint.mdx | 53 ++++++++++++++++++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/website/pages/docs/provisioners/breakpoint.mdx b/website/pages/docs/provisioners/breakpoint.mdx index 9cfdb4900..6f576ce3e 100644 --- a/website/pages/docs/provisioners/breakpoint.mdx +++ b/website/pages/docs/provisioners/breakpoint.mdx @@ -24,13 +24,62 @@ and between every provisioner. ## Basic Example + + + ```json { - "type": "breakpoint", - "note": "foo bar baz" + "builders": [ + { + "type": "null", + "communicator": "none" + } + ], + "provisioners": [ + { + "type": "shell-local", + "inline": "echo hi" + }, + { + "type": "breakpoint", + "disable": false, + "note": "this is a breakpoint" + }, + { + "type": "shell-local", + "inline": "echo hi 2" + } + ] } ``` + + + +```hcl +source "null" "example" { + communicator = "none" +} + +build { + sources = ["source.null.example"] + + provisioner "shell-local" { + inline = ["echo hi"] + } + provisioner "breakpoint" { + disable = false + note = "this is a breakpoint" + } + provisioner "shell-local" { + inline = ["echo hi 2"] + } +} +``` + + + + ## Configuration Reference ### Optional