Merge pull request #9823 from hashicorp/b-windows-shell-hcl-docs

provisioner/windows-shell: Add HCL2 example to documentation
This commit is contained in:
Megan Marsh 2020-08-25 16:35:08 -07:00 committed by GitHub
commit 0113aae27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'