Comments (2)
This behaviour could be caused by two different issues:
- Maybe the current environment of the process in which puppet runs is not updated with the new PATH. After writing the new path, I'm sending a broadcast event that the environment has been updated, so in theory that should not be the problem, but I'm not completely sure if that works under all circumstances. It could be something similar to the behaviour you will see when you
- start a command prompt in windows
- change the PATH variable - but not in that command prompt, let's say you change the PATH throught the system control panel
- the PATH change will not take effect in the command prompt window you opened earlier but only in command prompt windows you open after you changed PATH
- What exactly does the pip provider do to check for the command in the path? Do you know? If it's using the $::path fact from facter, there is also the problem that the fact will not be updated during the puppet run. As far as I know, it is not possible to update a fact during a puppet run and it probably also would not make sense. See this discussion on the "puppet uses" list.
from puppet-windows-path.
Maybe the pip provider could be changed so that it either takes the pip executable's absolut path as an optional parameter or it takes additional directories it should look in as an argument. In your context, you probably know very well where the pip executable is.
from puppet-windows-path.
Related Issues (9)
- Publish on puppet forge
- Duplicate declaration warnings if puppet-windows_env is used, too
- Remove Windows-specific requires from top level of provider HOT 2
- Upcoming Puppet 3.7 / PE 3.4 x64 compatibility changes HOT 4
- remove and add path?
- Create version tags HOT 1
- Maintain HOT 5
- Please correct Project URL on Puppet Forge
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-windows-path.