diff options
author | Sergey Stankevich <stankevich@users.noreply.github.com> | 2013-09-09 23:59:43 -0700 |
---|---|---|
committer | Sergey Stankevich <stankevich@users.noreply.github.com> | 2013-09-09 23:59:43 -0700 |
commit | a017bd325e677159e37d22d5b2ef65377846b23e (patch) | |
tree | 311faa576032ee5b5d460c1b1598b194bcbcab8d | |
parent | 25ca628e7de500da470df52c9c7250f5ba79975f (diff) | |
parent | 36da0821ef0b190d501b438cd0ac2daa0a4005ad (diff) |
Merge pull request #30 from chiangf/master
Allow PATH to be overridden
-rw-r--r-- | manifests/virtualenv.pp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/virtualenv.pp b/manifests/virtualenv.pp index cefffcc..bdcfc6f 100644 --- a/manifests/virtualenv.pp +++ b/manifests/virtualenv.pp @@ -34,6 +34,9 @@ # [*environment*] # Additional environment variables required to install the packages. Default: none # +# [*path*] +# Specifies the PATH variable. Default: [ '/bin', '/usr/bin', '/usr/sbin' ] +# # === Examples # # python::virtualenv { '/var/www/project1': @@ -62,7 +65,8 @@ define python::virtualenv ( $owner = 'root', $group = 'root', $proxy = false, - $environment = [] + $environment = [], + $path = [ '/bin', '/usr/bin', '/usr/sbin' ] ) { $venv_dir = $name @@ -102,7 +106,7 @@ define python::virtualenv ( command => "mkdir -p ${venv_dir} ${proxy_command} && virtualenv ${system_pkgs_flag} -p ${python} ${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, } |