-
Notifications
You must be signed in to change notification settings - Fork 170
Please add documentation for Chef shell-init #338
Comments
@mattstratton Just on the README or on docs.opscode.com? PR for the README should be pretty easy to do. I'm wondering if we have a different Windows section or if we just say "on Windows use 'posh' as your shell name". Thoughts? |
Any updates on this @mattstratton @danielsdeleo? I'm using Chef on Windows and the GEM_PATH and other GEM env vars point to a network drive (my $env:HOME) which makes for painfully slow gem installs. Any Windows docs would be helpful. |
@dougireton I'm not sure that any docs we can write will make your life easier (yet). However this is probably a common case, so maybe we can come up with an acceptable workaround that can be documented. Would you prefer to have chefdk put your gems somewhere other than your home directory? |
My basic issue is that HOME related env vars are set to a network drive by AD Group Policy, but USERPROFILE is set to c:\users\doug: HOME P:\
HOMEDRIVE P:
HOMEPATH \
USERPROFILE C:\Users\doug it seems like ChefDK defaults to I had to override the Ruby Gem dirs. I ended up adding this to my PowerShell profile. This speeds up # get Gem paths off of network drive (P:\)
$env:GEM_HOME = "$env:USERPROFILE\.chefdk\gem\ruby\2.1.0"
$env:GEM_PATH = "$env:GEM_HOME;$env:GEM_ROOT"
$env:GEM_SPEC_CACHE = "$env:USERPROFILE\.gem\specs"
# speed up berks install
$env:BERKSHELF_PATH = "$env:USERPROFILE\.berkshelf" |
@dougireton that behavior is the same between UNIX and Windows; in both cases we setup rubygems to have the This is set up in omnibus chef here: https://github.com/chef/omnibus-chef/blob/master/config/software/rubygems-customization.rb and here https://github.com/chef/omnibus-chef/blob/master/files/rubygems-customization/windows/operating_system.rb The Not sure how relevant it is to your issue, but if you run |
@danielsdeleo I think just in the README would be super useful. Eventually on the docs site (just thinking about the times this has come up at customer sites, and folks finding it in the two different places they might be looking would be delightful). That said, if this is just in the README I'll be a 😄 🐼 |
Okay, the original issue here is fixed by #365 Doug, if you have any suggested improvements on the stuff I mentioned before, could you file a new issue here or in omnibus-chef ? |
There is a powershell command that @smurawski has taught me about for setting up all the good pathing, etc, for ChefDK on Windows. Can this be added to the documentation page for ChefDK to make the experience more delightful for new users?
The text was updated successfully, but these errors were encountered: