Skip to content

Commit

Permalink
Salt Provisioner: Added a 'custom' option to install_type to allow mo…
Browse files Browse the repository at this point in the history
…re flexibility in passing arguments to the bootstrap script. Updated the docs.
  • Loading branch information
Tim O'Guin committed Mar 4, 2015
1 parent a8dcf92 commit 0289ab9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion plugins/provisioners/salt/provisioner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ def bootstrap_options(install, configure, config_dir)
end

if @config.install_type
options = "%s %s" % [options, @config.install_type]
# Allow passing install_args as an arbitrary string rather
# than trying to format it based on known options
if @config.install_type != "custom"
options = "%s %s" % [options, @config.install_type]
end
end

if @config.install_args
Expand Down
9 changes: 6 additions & 3 deletions website/docs/source/v2/provisioning/salt.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,20 @@ on this machine. Not supported on Windows.
* `install_syndic` (boolean) - Install the salt-syndic, default
`false`. Not supported on Windows.

* `install_type` (stable | git | daily | testing) - Whether to install from a
* `install_type` (stable | git | daily | testing | custom) - Whether to install from a
distribution's stable package manager, git tree-ish, daily ppa, or testing repository.
The custom type allows passing an arbitrary string of arguments via `install_args`
rather than formatting the arguments based on known install types.
Not supported on Windows.

* `install_args` (develop) - When performing a git install,
you can specify a branch, tag, or any treeish. Not supported on Windows.
you can specify a branch, tag, or any treeish. If using the `custom` install type,
you can also specify a different repository to install from.
Not supported on Windows.

* `always_install` (boolean) - Installs salt binaries even
if they are already detected, default `false`


* `bootstrap_options` (string) - Additional command-line options to
pass to the bootstrap script.

Expand Down

0 comments on commit 0289ab9

Please sign in to comment.