github.com/raghuse92/packer@v1.3.2/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 - Provisioners' 7 sidebar_current: 'docs-provisioners-salt-masterless' 8 --- 9 10 # Salt Masterless Provisioner 11 12 Type: `salt-masterless` 13 14 The `salt-masterless` Packer provisioner provisions machines built by Packer 15 using [Salt](http://saltstack.com/) states, without connecting to a Salt master. 16 17 ## Basic Example 18 19 The example below is fully functional. 20 21 ``` json 22 { 23 "type": "salt-masterless", 24 "local_state_tree": "/Users/me/salt" 25 } 26 ``` 27 28 ## Configuration Reference 29 30 The reference of available configuration options is listed below. The only 31 required element is "local_state_tree". 32 33 Required: 34 35 - `local_state_tree` (string) - The path to your local [state 36 tree](http://docs.saltstack.com/ref/states/highstate.html#the-salt-state-tree). 37 This will be uploaded to the `remote_state_tree` on the remote. 38 39 Optional: 40 41 - `bootstrap_args` (string) - Arguments to send to the bootstrap script. Usage 42 is somewhat documented on 43 [github](https://github.com/saltstack/salt-bootstrap), but the [script 44 itself](https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh) 45 has more detailed usage instructions. By default, no arguments are sent to 46 the script. 47 48 - `disable_sudo` (boolean) - By default, the bootstrap install command is prefixed with `sudo`. When using a 49 Docker builder, you will likely want to pass `true` since `sudo` is often not pre-installed. 50 51 - `remote_pillar_roots` (string) - The path to your remote [pillar 52 roots](http://docs.saltstack.com/ref/configuration/master.html#pillar-configuration). 53 default: `/srv/pillar`. This option cannot be used with `minion_config`. 54 55 - `remote_state_tree` (string) - The path to your remote [state 56 tree](http://docs.saltstack.com/ref/states/highstate.html#the-salt-state-tree). 57 default: `/srv/salt`. This option cannot be used with `minion_config`. 58 59 - `local_pillar_roots` (string) - The path to your local [pillar 60 roots](http://docs.saltstack.com/ref/configuration/master.html#pillar-configuration). 61 This will be uploaded to the `remote_pillar_roots` on the remote. 62 63 - `custom_state` (string) - A state to be run instead of `state.highstate`. 64 Defaults to `state.highstate` if unspecified. 65 66 - `minion_config` (string) - The path to your local [minion config 67 file](http://docs.saltstack.com/ref/configuration/minion.html). This will be 68 uploaded to the `/etc/salt` on the remote. This option overrides the 69 `remote_state_tree` or `remote_pillar_roots` options. 70 71 - `grains_file` (string) - The path to your local [grains file](https://docs.saltstack.com/en/latest/topics/grains). This will be 72 uploaded to `/etc/salt/grains` on the remote. 73 74 - `skip_bootstrap` (boolean) - By default the salt provisioner runs [salt 75 bootstrap](https://github.com/saltstack/salt-bootstrap) to install salt. Set 76 this to true to skip this step. 77 78 - `temp_config_dir` (string) - Where your local state tree will be copied 79 before moving to the `/srv/salt` directory. Default is `/tmp/salt`. 80 81 - `no_exit_on_failure` (boolean) - Packer will exit if the `salt-call` command 82 fails. Set this option to true to ignore Salt failures. 83 84 - `log_level` (string) - Set the logging level for the `salt-call` run. 85 86 - `salt_call_args` (string) - Additional arguments to pass directly to `salt-call`. See 87 [salt-call](https://docs.saltstack.com/ref/cli/salt-call.html) documentation for more 88 information. By default no additional arguments (besides the ones Packer generates) 89 are passed to `salt-call`. 90 91 - `salt_bin_dir` (string) - Path to the `salt-call` executable. Useful if it is not 92 on the PATH. 93 94 - `guest_os_type` (string) - The target guest OS type, either "unix" or "windows".