summaryrefslogtreecommitdiff
path: root/manifests/install.pp
diff options
context:
space:
mode:
authorFotis Gimian <fgimiansoftware@gmail.com>2013-06-04 10:20:38 +1000
committerFotis Gimian <fgimiansoftware@gmail.com>2013-06-04 10:20:46 +1000
commit17debdc04506a2bfd4297b7620acffdbd01c9176 (patch)
tree6c8706436ae3d9c7c1e8c1210288dec3d3ecd414 /manifests/install.pp
parent01bf2791ecadfbb954b947fefa8b15ca0c0b9947 (diff)
Made the pip package independent from the dev package in the python class and updated version to 1.1.1
Diffstat (limited to 'manifests/install.pp')
-rw-r--r--manifests/install.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/install.pp b/manifests/install.pp
index 6454377..9306e3a 100644
--- a/manifests/install.pp
+++ b/manifests/install.pp
@@ -17,7 +17,13 @@ class python::install {
default => absent,
}
- package { [ $pythondev, 'python-pip' ]: ensure => $dev_ensure }
+ $pip_ensure = $python::pip ? {
+ true => present,
+ default => absent,
+ }
+
+ package { $pythondev: ensure => $dev_ensure }
+ package { 'python-pip': ensure => $pip_ensure }
$venv_ensure = $python::virtualenv ? {
true => present,