Skip to content

Commit

Permalink
Fix scoping issues to allow for strict vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoneycutt committed Apr 13, 2016
1 parent e393013 commit a421a19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manifests/requirements.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
$timeout = 1800,
) {

include ::python

if $virtualenv == 'system' and ($owner != 'root' or $group != 'root') {
fail('python::pip: root user must be used when virtualenv is system')
}
Expand All @@ -98,8 +100,8 @@
}

$pip_env = $virtualenv ? {
'system' => "${python::exec_prefix} pip",
default => "${python::exec_prefix} ${virtualenv}/bin/pip",
'system' => "${::python::exec_prefix} pip",
default => "${::python::exec_prefix} ${virtualenv}/bin/pip",
}

$proxy_flag = $proxy ? {
Expand Down Expand Up @@ -136,5 +138,4 @@
subscribe => File[$requirements],
environment => $environment,
}

}

0 comments on commit a421a19

Please sign in to comment.