provisioner/windows-shell: Add HCL2 example to documentation
This commit is contained in:
parent
3506b8876f
commit
4dff73cec2
|
@ -18,6 +18,9 @@ The windows-shell Packer provisioner runs commands on a Windows machine using
|
||||||
|
|
||||||
The example below is fully functional.
|
The example below is fully functional.
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<Tab heading="JSON">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "windows-shell",
|
"type": "windows-shell",
|
||||||
|
@ -25,6 +28,18 @@ The example below is fully functional.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
<Tab heading="HCL2">
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
provisioner "windows-shell" {
|
||||||
|
inline = ["dir c:\\"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
## Configuration Reference
|
## Configuration Reference
|
||||||
|
|
||||||
@include 'provisioners/shell-config.mdx'
|
@include 'provisioners/shell-config.mdx'
|
||||||
|
|
Loading…
Reference in New Issue