summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSergey Stankevich <stankevich@users.noreply.github.com>2014-03-18 08:34:56 -0400
committerSergey Stankevich <stankevich@users.noreply.github.com>2014-03-18 08:34:56 -0400
commit535d9b7d82c583d111a67f39d0c95b24c9216afb (patch)
tree97e4431ee1fefd8f709c52bcbf5c1d36a4da8093 /manifests
parent3256bb113579ff68a4720023dbe2e4ebb2e23c44 (diff)
parent0ce45d0b9a82bba68c4fd19c3b95551ede848dfc (diff)
Merge pull request #73 from giavac/master
Don't try to reinstall pip packages on every Puppet run #59
Diffstat (limited to 'manifests')
-rw-r--r--manifests/pip.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp
index cbd2ed8..bf987a4 100644
--- a/manifests/pip.pp
+++ b/manifests/pip.pp
@@ -146,6 +146,7 @@ define python::pip (
# Latest version.
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'],