2013-07-26 17:15:02 -04:00
|
|
|
---
|
|
|
|
layout: "docs"
|
2013-09-01 13:02:46 -04:00
|
|
|
page_title: "Salt (Masterless) Provisioner"
|
2013-07-26 17:15:02 -04:00
|
|
|
---
|
|
|
|
|
2013-07-29 02:30:03 -04:00
|
|
|
# Salt Masterless Provisioner
|
2013-07-26 17:15:02 -04:00
|
|
|
|
2013-07-29 02:30:03 -04:00
|
|
|
Type: `salt-masterless`
|
2013-07-26 17:15:02 -04:00
|
|
|
|
2013-08-01 02:21:16 -04:00
|
|
|
The `salt-masterless` provisioner provisions machines built by Packer using
|
|
|
|
[Salt](http://saltstack.com/) states, without connecting to a Salt master.
|
2013-07-26 17:15:02 -04:00
|
|
|
|
|
|
|
## Basic Example
|
|
|
|
|
|
|
|
The example below is fully functional.
|
|
|
|
|
|
|
|
<pre class="prettyprint">
|
|
|
|
{
|
2013-07-29 02:30:03 -04:00
|
|
|
"type": "salt-masterless",
|
2013-07-27 02:36:14 -04:00
|
|
|
"local_state_tree": "/Users/me/salt"
|
2013-07-26 17:15:02 -04:00
|
|
|
}
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
## Configuration Reference
|
|
|
|
|
2013-07-27 02:36:14 -04:00
|
|
|
The reference of available configuration options is listed below. The only required argument is the path to your local salt state tree.
|
2013-07-26 17:15:02 -04:00
|
|
|
|
2013-08-10 11:16:21 -04:00
|
|
|
Optional:
|
2013-07-27 02:36:14 -04:00
|
|
|
|
2013-08-01 02:21:16 -04:00
|
|
|
* `local_state_tree` (string) - The path to your local
|
|
|
|
[state tree](http://docs.saltstack.com/ref/states/highstate.html#the-salt-state-tree).
|
2013-08-10 11:16:21 -04:00
|
|
|
This will be uploaded to the `/srv/salt` on the remote.
|
2013-07-27 02:36:14 -04:00
|
|
|
|
2013-08-27 19:48:24 -04:00
|
|
|
* `local_pillar_roots` (string) - The path to your local
|
|
|
|
[pillar roots](http://docs.saltstack.com/ref/configuration/master.html#pillar-configuration).
|
|
|
|
This will be uploaded to the `/srv/pillar` on the remote.
|
|
|
|
|
2013-08-01 02:21:16 -04:00
|
|
|
* `skip_bootstrap` (boolean) - By default the salt provisioner runs
|
|
|
|
[salt bootstrap](https://github.com/saltstack/salt-bootstrap) to install
|
|
|
|
salt. Set this to true to skip this step.
|
2013-07-26 17:15:02 -04:00
|
|
|
|
2013-10-17 12:12:21 -04:00
|
|
|
* `bootstrap_args` (string) - Arguments to send to the bootstrap script. Usage
|
2013-08-01 02:21:16 -04:00
|
|
|
is somewhat documented on [github](https://github.com/saltstack/salt-bootstrap),
|
|
|
|
but the [script itself](https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh)
|
|
|
|
has more detailed usage instructions. By default, no arguments are sent to
|
|
|
|
the script.
|
2013-07-27 03:00:01 -04:00
|
|
|
|
2013-08-10 13:20:02 -04:00
|
|
|
* `minion_config` (string) - The path to your local
|
|
|
|
[minion config](http://docs.saltstack.com/topics/configuration.html).
|
|
|
|
This will be uploaded to the `/etc/salt` on the remote.
|
|
|
|
|
2013-08-01 02:21:16 -04:00
|
|
|
* `temp_config_dir` (string) - Where your local state tree will be copied
|
|
|
|
before moving to the `/srv/salt` directory. Default is `/tmp/salt`.
|