Skip to content

Commit 79e696d

Browse files
Merge pull request #245 from pratixha/pratiksha/windows_unsupported_custom_path
Added docs for windows custom path
2 parents 696ecaa + d3d8857 commit 79e696d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ The PowerShell upgrade script then moves the current installation to a `chef.upg
3535

3636
On Windows the only supported `post_install_action` is `kill` (the property will be forced to `kill` if given `exec` and platform is Windows) because the Chef Infra Client process must be terminated before the `Chef_upgrade` scheduled task starts in order to release all open file locks by the client, otherwise the upgrade will fail with file-in-use errors.
3737

38+
Root installation path for chef-client in cookbooks/chef_client_updater/attributes/default.rb when a custom path is used.
39+
`default['chef_client_updater']['chef_install_path'] = 'CHEF_CLIENT_FOLDER_PATH'`
40+
Defaults to 'C:/opscode/chef' on Windows and '/opt/chef' for everything else.
41+
3842
#### Running Chef Infra Client as a Scheduled Task
3943

4044
If you run as a scheduled task, then this will work smoothly. The path to the newly installed Chef Infra Client will be the same and the scheduled task will launch it. Part of this resource's job on the next run is to make sure the staging directory with the older client is removed.

0 commit comments

Comments
 (0)