diff options
author | Xorima <4923914+Xorima@users.noreply.github.com> | 2020-01-16 21:52:18 +0000 |
---|---|---|
committer | Lamont Granquist <lamont@chef.io> | 2020-01-16 13:52:18 -0800 |
commit | 1c671d136a7e91da4a98e5468a15765c11c21bef (patch) | |
tree | 93636a1b5340d1473529fc26160a232804444242 /lib/chef/knife | |
parent | 69823b0d209fe0873bb4e9b0faf451b17c64ff43 (diff) | |
download | chef-1c671d136a7e91da4a98e5468a15765c11c21bef.tar.gz |
Windows Path on Bootstrap (#8669)
* Windows Path on Bootstrap
As a windows user when I bootstrap a node I expect the path to not have items removed as my cookbooks may depend on executables not stored on common system paths, such as sqlcmd which will break and cause the initial chef run to fail
Signed-off-by: Jason Field <jason@avon-lea.co.uk>
* Update windows_bootstrap_context.rb
Updated path as per feedback
* PATH on windows
Fixes for bad copy paste
Signed-off-by: Jason Field <jason.field@calastone.com>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/core/windows_bootstrap_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/core/windows_bootstrap_context.rb b/lib/chef/knife/core/windows_bootstrap_context.rb index b06ddd9fcc..977bfadc16 100644 --- a/lib/chef/knife/core/windows_bootstrap_context.rb +++ b/lib/chef/knife/core/windows_bootstrap_context.rb @@ -158,7 +158,7 @@ class Chef def start_chef bootstrap_environment_option = bootstrap_environment.nil? ? "" : " -E #{bootstrap_environment}" - start_chef = "SET \"PATH=%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;C:\\ruby\\bin;C:\\opscode\\chef\\bin;C:\\opscode\\chef\\embedded\\bin\"\n" + start_chef = "SET \"PATH=%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\System32\\Wbem;%SYSTEMROOT%\\System32\\WindowsPowerShell\\v1.0\\;C:\\ruby\\bin;C:\\opscode\\chef\\bin;C:\\opscode\\chef\\embedded\\bin\;%PATH%\"\n" start_chef << "chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json#{bootstrap_environment_option}\n" end |