hcl example for breakpoint provisioner

This commit is contained in:
Megan Marsh 2020-08-11 16:28:02 -07:00
parent 703023d47e
commit 0aa4d7117d
1 changed files with 51 additions and 2 deletions

View File

@ -24,13 +24,62 @@ and between every provisioner.
## Basic Example
<Tabs>
<Tab heading="JSON">
```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"
}
]
}
```
</Tab>
<Tab heading="HCL2">
```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"]
}
}
```
</Tab>
</Tabs>
## Configuration Reference
### Optional