-
Notifications
You must be signed in to change notification settings - Fork 136
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
If possible, update the path for Puppet after a provider run #63
Comments
This is the million dollar Windows question. Windows does not refresh the path for the current shell, so it can cause issues. The workaround is to determine where something will install and use that as the path. |
It is a shortcoming for Windows, and every tool suffers. |
By default, a child process inherits the environment variables of its parent process. The problem is that with a tool like puppet everything becomes a child process for execution purposes. |
Sigh. OK - thanks. |
I added https://tickets.puppetlabs.com/browse/PUP-4708 to follow up on whether this is something we can add to Puppet. |
There are a few tricks. Perhaps we can make the provider perform them. :) |
I'm sure this module does what you are after : - https://forge.puppetlabs.com/counsyl/windows#windowsrefresh_environment |
MODULES-3302 add Rototiller to Rakefile
Is there a trick by which packages installed by chocolatey that update the Machine Path (i.e.
[System.Environment]::GetEnvironmentVariable("Path","Machine")
) can be used by subsequent Exec calls in the samepuppet apply
run? I'm having difficulty withnodejs.install
and subsequently using the Powershell provider (puppetlabs/powershell
) to runnpm
commands.Any tricks to make this work? I've created an issue w/ the powershell provider as well, because I can't seem to provide an up-to-date
path => ...
to the Exec, which seems like a shortcoming or bug of some sort.The text was updated successfully, but these errors were encountered: