diff options
author | Frank Chiang <fchiang@apperian.com> | 2013-08-15 08:23:48 -0400 |
---|---|---|
committer | Frank Chiang <fchiang@apperian.com> | 2013-08-15 08:23:48 -0400 |
commit | e9520954b699fc87c3e58c62bffe027fe11e2f1c (patch) | |
tree | 926762deb3c3fda9721d1d872b6c623b7dce592d /manifests | |
parent | f508b71d534f3c67db12886fa914cb4ef74bbe7a (diff) |
Change hardcoded path in virtualenv module to take in an optional parameter.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/virtualenv.pp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/virtualenv.pp b/manifests/virtualenv.pp index 039d085..14207a5 100644 --- a/manifests/virtualenv.pp +++ b/manifests/virtualenv.pp @@ -62,7 +62,8 @@ define python::virtualenv ( $owner = 'root', $group = 'root', $proxy = false, - $environment = [] + $environment = [], + $path = [ '/bin', '/usr/bin', '/usr/sbin' ] ) { $venv_dir = $name @@ -102,7 +103,7 @@ define python::virtualenv ( command => "mkdir -p ${venv_dir} ${proxy_command} && virtualenv ${system_pkgs_flag} ${venv_dir} && ${venv_dir}/bin/pip --log-file ${venv_dir}/pip.log install ${pypi_index} ${proxy_flag} --upgrade pip ${distribute_pkg}", user => $owner, creates => "${venv_dir}/bin/activate", - path => [ '/bin', '/usr/bin', '/usr/sbin' ], + path => $path, cwd => "/tmp", environment => $environment, } |