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

Move PowerShell Profile customizations to a managed file #130

Closed
oifland opened this Issue Apr 27, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@oifland
Member

oifland commented Apr 27, 2016

Right now, we use :create_if_missing on the PowerShell profile template, which makes it hard to update. A better way would be to move all our customizations to an external file (perhaps a Module) and then include that external file into profile with something like the line cookbook.

@dougireton

This comment has been minimized.

Show comment
Hide comment
@dougireton

dougireton Apr 27, 2016

Contributor

If we use a module, we can drop it in C:\opscode\chefdk\modules\

See here for more info: https://www.chef.io/blog/2015/08/17/chefdk-0-7-0-released/

Contributor

dougireton commented Apr 27, 2016

If we use a module, we can drop it in C:\opscode\chefdk\modules\

See here for more info: https://www.chef.io/blog/2015/08/17/chefdk-0-7-0-released/

@dougireton dougireton added this to the 2.0 milestone May 4, 2016

@dougireton dougireton self-assigned this May 4, 2016

dougireton added a commit that referenced this issue May 7, 2016

Release 1.8.0
Fix #130
  Move PowerShell Profile customizations to a PowerShell module on the $env:PSModulePath

Fix #75
  Write PowerShell profile customizations to $Profile.CurrentUserAllHosts

@dougireton dougireton referenced this issue May 7, 2016

Merged

Release 1.8.0 #131

dougireton added a commit that referenced this issue May 7, 2016

Release 1.8.0
Fix #130: Move PowerShell Profile customizations to a PowerShell module on the $env:PSModulePath

Fix #75: Write PowerShell profile customizations to $Profile.CurrentUserAllHosts

* Upgrading from 1.7
This cookbook no longer writes C:\WINDOWS\System32\WindowsPowerShell\v1.0\profile.ps1.
If you are upgrading from 1.7 or earlier you will need to remove [the lines added by the chefdk_bootstrap in v1.7.0](https://github.com/Nordstrom/chefdk_bootstrap/blob/v1.7.0/templates/windows/global_profile.ps1.erb)
or delete the file.

dougireton added a commit that referenced this issue May 11, 2016

Release 1.8.0
Fix #130: Move PowerShell Profile customizations to a PowerShell module on the $env:PSModulePath

Fix #75: Write PowerShell profile customizations to $Profile.CurrentUserAllHosts

* Upgrading from 1.7
This cookbook no longer writes C:\WINDOWS\System32\WindowsPowerShell\v1.0\profile.ps1.
If you are upgrading from 1.7 or earlier you will need to remove [the lines added by the chefdk_bootstrap in v1.7.0](https://github.com/Nordstrom/chefdk_bootstrap/blob/v1.7.0/templates/windows/global_profile.ps1.erb)
or delete the file.

@oifland oifland closed this in #131 May 12, 2016

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