Merge pull request #9753 from hashicorp/breakpoint_hcl_docs
hcl example for breakpoint provisioner
This commit is contained in:
commit
956651e711
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue