summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorJarl Stefansson <jarl@sdelements.com>2013-11-07 18:46:52 -0500
committerJarl Stefansson <jarl@sdelements.com>2013-11-07 18:46:52 -0500
commit2e3784ba2c93f8240648682ce0b3c14bcb8605a7 (patch)
tree6cbaea760785bde990951dd58ba1fa4aa2ac42be /manifests
parent99a7bbbf8a0d4db3a2abba9f4a47ac65c223bbaa (diff)
Added latest support to pip, fixed log param
--log-file is not supported in older versions, changed to use --log Added ability to do pip --upgrade by using latest
Diffstat (limited to 'manifests')
-rw-r--r--manifests/pip.pp11
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp
index 9589b1a..0bed6dc 100644
--- a/manifests/pip.pp
+++ b/manifests/pip.pp
@@ -80,7 +80,7 @@ define python::pip (
case $ensure {
present: {
exec { "pip_install_${name}":
- command => "$pip_env --log-file ${cwd}/pip.log install ${proxy_flag} ${source}",
+ command => "$pip_env --log ${cwd}/pip.log install ${proxy_flag} ${source}",
unless => "$pip_env freeze | grep -i -e ${grep_regex}",
user => $owner,
environment => $environment,
@@ -88,6 +88,15 @@ define python::pip (
}
}
+ 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"],
+ }
+ }
+
default: {
exec { "pip_uninstall_${name}":
command => "echo y | $pip_env uninstall ${proxy_flag} ${name}",