packer-cn/website/source/docs/provisioners/salt-masterless.html.markdown
Rach Belaid 23b856332e #269 Make local_state_tree option not mandatory
Update and rename salt.html.markdown to salt-masterless.html.markdown
salt.html.markdown had a better history and formatting
And remove local_state_tree from required option from code and docs
2013-08-10 16:18:57 +01:00

1.4 KiB

layout
docs

Salt Masterless Provisioner

Type: salt-masterless

The salt-masterless provisioner provisions machines built by Packer using Salt states, without connecting to a Salt master.

Basic Example

The example below is fully functional.

{
    "type": "salt-masterless",
    "local_state_tree": "/Users/me/salt"
}

Configuration Reference

The reference of available configuration options is listed below. The only required argument is the path to your local salt state tree.

Optional:

  • local_state_tree (string) - The path to your local state tree. This will be uploaded to the /srv/salt on the remote.

  • skip_bootstrap (boolean) - By default the salt provisioner runs salt bootstrap to install salt. Set this to true to skip this step.

  • boostrap_args (string) - Arguments to send to the bootstrap script. Usage is somewhat documented on github, but the script itself has more detailed usage instructions. By default, no arguments are sent to the script.

  • temp_config_dir (string) - Where your local state tree will be copied before moving to the /srv/salt directory. Default is /tmp/salt.