Skip to content

Commit e952095

Browse files
author
Frank Chiang
committed
Change hardcoded path in virtualenv module to take in an optional parameter.
1 parent f508b71 commit e952095

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

manifests/virtualenv.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
$owner = 'root',
6363
$group = 'root',
6464
$proxy = false,
65-
$environment = []
65+
$environment = [],
66+
$path = [ '/bin', '/usr/bin', '/usr/sbin' ]
6667
) {
6768

6869
$venv_dir = $name
@@ -102,7 +103,7 @@
102103
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}",
103104
user => $owner,
104105
creates => "${venv_dir}/bin/activate",
105-
path => [ '/bin', '/usr/bin', '/usr/sbin' ],
106+
path => $path,
106107
cwd => "/tmp",
107108
environment => $environment,
108109
}

0 commit comments

Comments
 (0)