summaryrefslogtreecommitdiff
path: root/manifests/config.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/config.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/config.pp')
-rw-r--r--manifests/config.pp21
1 files changed, 11 insertions, 10 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index 49e5230..fdd808f 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -6,18 +6,19 @@ class python::config {
Python::Virtualenv <| |> -> Python::Pip <| |>
- if $python::gunicorn {
- Class['python::install'] -> Python::Gunicorn <| |>
+ if $python::manage_gunicorn {
+ if $python::gunicorn {
+ Class['python::install'] -> Python::Gunicorn <| |>
- Python::Gunicorn <| |> ~> Service['gunicorn']
+ Python::Gunicorn <| |> ~> Service['gunicorn']
- service { 'gunicorn':
- ensure => running,
- enable => true,
- hasrestart => true,
- hasstatus => false,
- pattern => '/usr/bin/gunicorn',
+ service { 'gunicorn':
+ ensure => running,
+ enable => true,
+ hasrestart => true,
+ hasstatus => false,
+ pattern => '/usr/bin/gunicorn',
+ }
}
}
-
}