github.com/kikitux/packer@v0.10.1-0.20160322154024-6237df566f9f/website/source/docs/provisioners/shell-local.html.md (about)

     1  ---
     2  description: |
     3      The shell Packer provisioner provisions machines built by Packer using shell
     4      scripts. Shell provisioning is the easiest way to get software installed and
     5      configured on a machine.
     6  layout: docs
     7  page_title: Local Shell Provisioner
     8  ...
     9  
    10  # Local Shell Provisioner
    11  
    12  Type: `shell-local`
    13  
    14  The local shell provisioner executes a local shell script on the machine running
    15  Packer. The [remote shell](/docs/provisioners/shell.html) provisioner executes
    16  shell scripts on a remote machine.
    17  
    18  ## Basic Example
    19  
    20  The example below is fully functional.
    21  
    22  ``` {.javascript}
    23  {
    24    "type": "shell-local",
    25    "command": "echo foo"
    26  }
    27  ```
    28  
    29  ## Configuration Reference
    30  
    31  The reference of available configuration options is listed below. The only
    32  required element is "command".
    33  
    34  Required:
    35  
    36  -   `command` (string) - The command to execute. This will be executed within
    37      the context of a shell as specified by `execute_command`.
    38  
    39  Optional parameters:
    40  
    41  -   `execute_command` (array of strings) - The command to use to execute
    42      the script. By default this is `["/bin/sh", "-c", "{{.Command}}"]`. The value
    43      is an array of arguments executed directly by the OS. The value of this is
    44      treated as [configuration
    45      template](/docs/templates/configuration-templates.html). The only available
    46      variable is `Command` which is the command to execute.