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

     1  ---
     2  description: |
     3      The `salt-masterless` Packer provisioner provisions machines built by Packer
     4      using Salt states, without connecting to a Salt master.
     5  layout: docs
     6  page_title: 'Salt (Masterless) Provisioner'
     7  ...
     8  
     9  # Salt Masterless Provisioner
    10  
    11  Type: `salt-masterless`
    12  
    13  The `salt-masterless` Packer provisioner provisions machines built by Packer
    14  using [Salt](http://saltstack.com/) states, without connecting to a Salt master.
    15  
    16  ## Basic Example
    17  
    18  The example below is fully functional.
    19  
    20  ``` {.javascript}
    21  {
    22    "type": "salt-masterless",
    23    "local_state_tree": "/Users/me/salt"
    24  }
    25  ```
    26  
    27  ## Configuration Reference
    28  
    29  The reference of available configuration options is listed below. The only
    30  required argument is the path to your local salt state tree.
    31  
    32  Optional:
    33  
    34  -   `bootstrap_args` (string) - Arguments to send to the bootstrap script. Usage
    35      is somewhat documented on
    36      [github](https://github.com/saltstack/salt-bootstrap), but the [script
    37      itself](https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh)
    38      has more detailed usage instructions. By default, no arguments are sent to
    39      the script.
    40  
    41  -   `disable_sudo` (boolean) - By default, the bootstrap install command is prefixed with `sudo`. When using a
    42      Docker builder, you will likely want to pass `true` since `sudo` is often not pre-installed.
    43  
    44  -   `remote_pillar_roots` (string) - The path to your remote [pillar
    45      roots](http://docs.saltstack.com/ref/configuration/master.html#pillar-configuration).
    46      default: `/srv/pillar`. This option cannot be used with `minion_config`.
    47  
    48  -   `remote_state_tree` (string) - The path to your remote [state
    49      tree](http://docs.saltstack.com/ref/states/highstate.html#the-salt-state-tree).
    50      default: `/srv/salt`. This option cannot be used with `minion_config`.
    51  
    52  -   `local_pillar_roots` (string) - The path to your local [pillar
    53      roots](http://docs.saltstack.com/ref/configuration/master.html#pillar-configuration).
    54      This will be uploaded to the `remote_pillar_roots` on the remote.
    55  
    56  -   `local_state_tree` (string) - The path to your local [state
    57      tree](http://docs.saltstack.com/ref/states/highstate.html#the-salt-state-tree).
    58      This will be uploaded to the `remote_state_tree` on the remote.
    59  
    60  -   `minion_config` (string) - The path to your local [minion config
    61      file](http://docs.saltstack.com/ref/configuration/minion.html). This will be
    62      uploaded to the `/etc/salt` on the remote. This option overrides the
    63      `remote_state_tree` or `remote_pillar_roots` options.
    64  
    65  -   `skip_bootstrap` (boolean) - By default the salt provisioner runs [salt
    66      bootstrap](https://github.com/saltstack/salt-bootstrap) to install salt. Set
    67      this to true to skip this step.
    68  
    69  -   `temp_config_dir` (string) - Where your local state tree will be copied
    70      before moving to the `/srv/salt` directory. Default is `/tmp/salt`.
    71  
    72  -   `no_exit_on_failure` (boolean) - Packer will exit if the Salt highstate command
    73      fails. Set this option to true to ignore Salt failures.
    74  
    75  -   `log_level` (string) - Set the logging level for the Salt highstate run.