summaryrefslogtreecommitdiff
path: root/manifests/install.pp
diff options
context:
space:
mode:
authorDaniel Lawrence <dannyla@linux.com>2013-11-29 09:16:31 +1100
committerDaniel Lawrence <dannyla@linux.com>2013-11-29 09:16:31 +1100
commit04bffc411afb19a572af34d1a2e0f7029f16dfe4 (patch)
tree6f50df19414e199a6df9a142abb0e8275eca0dcd /manifests/install.pp
parent725cf0d480b73abd53c8b4d31dc6b3190188ca74 (diff)
Added manage_gunicorn flag.
This will allow a user to stop the module from trying to do anything with gunicorn.
Diffstat (limited to 'manifests/install.pp')
-rw-r--r--manifests/install.pp11
1 files changed, 6 insertions, 5 deletions
diff --git a/manifests/install.pp b/manifests/install.pp
index 415092e..caead49 100644
--- a/manifests/install.pp
+++ b/manifests/install.pp
@@ -32,11 +32,12 @@ class python::install {
package { 'python-virtualenv': ensure => $venv_ensure }
- $gunicorn_ensure = $python::gunicorn ? {
- true => present,
- default => absent,
+ if $python::manage_gunicorn {
+ $gunicorn_ensure = $python::gunicorn ? {
+ true => present,
+ default => absent,
+ }
+ package { 'gunicorn': ensure => $gunicorn_ensure }
}
- package { 'gunicorn': ensure => $gunicorn_ensure }
-
}