|
|
|
@ -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'
|
|
|
|
|