summaryrefslogtreecommitdiff
path: root/manifests
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
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')
-rw-r--r--manifests/init.pp5
-rw-r--r--manifests/install.pp8
2 files changed, 12 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8e8de9e..2a9a44c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -7,6 +7,9 @@
# [*version*]
# Python version to install. Default: system default
#
+# [*pip*]
+# Install python-pip. Default: false
+#
# [*dev*]
# Install python-dev. Default: false
#
@@ -20,6 +23,7 @@
#
# class { 'python':
# version => 'system',
+# pip => true,
# dev => true,
# virtualenv => true,
# gunicorn => true,
@@ -31,6 +35,7 @@
#
class python (
$version = 'system',
+ $pip = false,
$dev = false,
$virtualenv = false,
$gunicorn = false
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,