Skip to content

Commit 13b09be

Browse files
committed
(hashicorp#9802) Allow non-windows hosts to pass along version
The salt bootstrap can now accept version arguments on non-windows hosts, so this commit allows the Vagrant provisinoer to specify a version.
1 parent 770b6e0 commit 13b09be

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plugins/provisioners/salt/provisioner.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ def run_bootstrap_script
304304
end
305305
bootstrap_destination = File.join(config_dir, "bootstrap_salt.ps1")
306306
else
307+
if @config.version
308+
options += " %s" % @config.version
309+
end
307310
bootstrap_destination = File.join(config_dir, "bootstrap_salt.sh")
308311
end
309312

website/source/docs/provisioning/salt.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ distribution's stable package manager, git tree-ish, daily ppa, or testing repos
7575
* `bootstrap_options` (string) - Additional command-line options to
7676
pass to the bootstrap script.
7777

78-
* `version` (string, default: "2017.7.1") - Version of minion to be installed. Only supported on Windows guest machines.
78+
* `version` (string, default: "2017.7.1") - Version of minion to be installed.
7979

8080
* `python_version` (string, default: "2") - Major Python version of minion to be installed. Only valid for minion versions >= 2017.7.0. Only supported on Windows guest machines.
8181

0 commit comments

Comments
 (0)