provisioner/windows-shell: Add HCL2 example to documentation

This commit is contained in:
Wilken Rivera 2020-08-25 16:55:21 -04:00
parent 3506b8876f
commit 4dff73cec2
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,9 @@ The windows-shell Packer provisioner runs commands on a Windows machine using
The example below is fully functional.
<Tabs>
<Tab heading="JSON">
```json
{
"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
@include 'provisioners/shell-config.mdx'