summaryrefslogtreecommitdiff
path: root/manifests/pip.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/pip.pp')
-rw-r--r--manifests/pip.pp20
1 files changed, 10 insertions, 10 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp
index bcb7911..ebe549b 100644
--- a/manifests/pip.pp
+++ b/manifests/pip.pp
@@ -57,7 +57,7 @@ define python::pip (
$cwd = $virtualenv ? {
'system' => '/',
- default => "${virtualenv}",
+ default => $virtualenv,
}
$pip_env = $virtualenv ? {
@@ -88,26 +88,26 @@ define python::pip (
case $ensure {
present: {
exec { "pip_install_${name}":
- command => "$pip_env --log ${cwd}/pip.log install $install_args ${proxy_flag} ${source}",
- unless => "$pip_env freeze | grep -i -e ${grep_regex}",
+ command => "${pip_env} --log ${cwd}/pip.log install ${install_args} ${proxy_flag} ${source}",
+ unless => "${pip_env} freeze | grep -i -e ${grep_regex}",
user => $owner,
environment => $environment,
- path => ["/usr/local/bin","/usr/bin","/bin", "/usr/sbin"],
+ 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}",
+ 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"],
+ path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
}
}
latest: {
exec { "pip_install_${name}":
- command => "$pip_env --log ${cwd}/pip.log install -U $install_args ${proxy_flag} ${source}",
+ command => "${pip_env} --log ${cwd}/pip.log install -U ${install_args} ${proxy_flag} ${source}",
user => $owner,
environment => $environment,
}
@@ -115,11 +115,11 @@ define python::pip (
default: {
exec { "pip_uninstall_${name}":
- command => "echo y | $pip_env uninstall $uninstall_args ${proxy_flag} ${name}",
- onlyif => "$pip_env freeze | grep -i -e ${grep_regex}",
+ command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag} ${name}",
+ onlyif => "${pip_env} freeze | grep -i -e ${grep_regex}",
user => $owner,
environment => $environment,
- path => ["/usr/local/bin","/usr/bin","/bin", "/usr/sbin"],
+ path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
}
}
}