Merge pull request #9753 from hashicorp/breakpoint_hcl_docs

hcl example for breakpoint provisioner
This commit is contained in:
Wilken Rivera 2020-08-11 21:07:38 -04:00 committed by GitHub
commit 956651e711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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