From 4dff73cec29db2066f01d43a1cd17cd23c9a8611 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Tue, 25 Aug 2020 16:55:21 -0400 Subject: [PATCH] provisioner/windows-shell: Add HCL2 example to documentation --- website/pages/docs/provisioners/windows-shell.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/pages/docs/provisioners/windows-shell.mdx b/website/pages/docs/provisioners/windows-shell.mdx index 1cd417adf..53b178a57 100644 --- a/website/pages/docs/provisioners/windows-shell.mdx +++ b/website/pages/docs/provisioners/windows-shell.mdx @@ -18,6 +18,9 @@ The windows-shell Packer provisioner runs commands on a Windows machine using The example below is fully functional. + + + ```json { "type": "windows-shell", @@ -25,6 +28,18 @@ The example below is fully functional. } ``` + + + +```hcl +provisioner "windows-shell" { + inline = ["dir c:\\"] +} +``` + + + + ## Configuration Reference @include 'provisioners/shell-config.mdx'