Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions manifests/virtualenv.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
# [*systempkgs*]
# Copy system site-packages into virtualenv. Default: don't
# If virtualenv version < 1.7 this flag has no effect since
#
# [*venv_dir*]
# Directory to install virtualenv to. Default: $name
#
# [*ensure_venv_dir*]
# Create $venv_dir. Default: true
#
# [*distribute*]
# Include distribute in the virtualenv. Default: true
#
Expand Down Expand Up @@ -77,6 +81,7 @@
$requirements = false,
$systempkgs = false,
$venv_dir = $name,
$ensure_venv_dir = true,
$distribute = true,
$index = false,
$owner = 'root',
Expand Down Expand Up @@ -152,11 +157,13 @@
# To check for this we test for wheel parameter using help and then using
# version, this makes sure we only use wheels if they are supported

file { $venv_dir:
ensure => directory,
owner => $owner,
group => $group,
mode => $mode
if $ensure_venv_dir {
file { $venv_dir:
ensure => directory,
owner => $owner,
group => $group,
mode => $mode
}
}

$virtualenv_cmd = "${python::exec_prefix}${used_virtualenv}"
Expand Down