Skip to content

Commit

Permalink
Don't try to reinstall pip packages on every Puppet run voxpupuli#59;…
Browse files Browse the repository at this point in the history
… Even if ensure latest, do not install if already latest
  • Loading branch information
giavac committed Mar 18, 2014
1 parent 2dde12a commit 0ce45d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manifests/pip.pp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
latest: {
exec { "pip_install_${name}":
command => "${pip_env} wheel --help > /dev/null 2>&1 && { ${pip_env} wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; ${pip_env} --log ${cwd}/pip.log install --upgrade \$wheel_support_flag ${proxy_flag} ${source}",
unless => "${pip_env} search ${source} | grep -i INSTALLED | grep -i latest",
user => $owner,
environment => $environment,
path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
Expand Down

0 comments on commit 0ce45d0

Please sign in to comment.