summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Vacca <giacomo.vacca@gmail.com>2014-03-18 11:14:29 +0000
committerGiacomo Vacca <giacomo.vacca@gmail.com>2014-03-18 11:14:29 +0000
commit0ce45d0b9a82bba68c4fd19c3b95551ede848dfc (patch)
treed2027d9cd3ff295a5d0e9e898987e0669860fff4
parent2dde12a6bb58d84eff90fb13e120303ac61f8f49 (diff)
Don't try to reinstall pip packages on every Puppet run #59; Even if ensure latest, do not install if already latest
-rw-r--r--manifests/pip.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp
index 7e332fe..47e9732 100644
--- a/manifests/pip.pp
+++ b/manifests/pip.pp
@@ -121,6 +121,7 @@ define python::pip (
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'],