diff options
Diffstat (limited to 'manifests/pip.pp')
-rw-r--r-- | manifests/pip.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp index 7b51439..bcb7911 100644 --- a/manifests/pip.pp +++ b/manifests/pip.pp @@ -92,6 +92,16 @@ define python::pip ( unless => "$pip_env freeze | grep -i -e ${grep_regex}", user => $owner, environment => $environment, + path => ["/usr/local/bin","/usr/bin","/bin", "/usr/sbin"], + } + } + + latest: { + exec { "pip_install_${name}": + command => "$pip_env --log ${cwd}/pip.log install --upgrade ${proxy_flag} ${source}", + user => $owner, + environment => $environment, + path => ["/usr/local/bin","/usr/bin","/bin", "/usr/sbin"], } } @@ -109,6 +119,7 @@ define python::pip ( onlyif => "$pip_env freeze | grep -i -e ${grep_regex}", user => $owner, environment => $environment, + path => ["/usr/local/bin","/usr/bin","/bin", "/usr/sbin"], } } } |