New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup Environment Variables after installation #133

Closed
oifland opened this Issue May 16, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@oifland
Member

oifland commented May 16, 2016

There are some environment variables we set during the bootstrap that need to be removed from the environment when we're done to avoid berkshelf errors (perhaps among other things).

Example: https://github.com/Nordstrom/chefdk_bootstrap/blob/master/bootstrap.ps1#L133

Resulting error (a client.rb file is looked for in the temporary location):

C:\Users\<user>\AppData\Local\Temp\chefdk_bootstrap\client.rb does not exist (ChefConfig::ConfigurationError)
@oifland

This comment has been minimized.

Show comment
Hide comment
@oifland

oifland May 16, 2016

Member

After reviewing the code, it looks like it's just the berkshelf client config that needs to be cleaned up and only on Windows.

Member

oifland commented May 16, 2016

After reviewing the code, it looks like it's just the berkshelf client config that needs to be cleaned up and only on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment