diff options
author | Vik Bhatti <vik@vikbhatti.com> | 2014-04-08 14:50:52 +0100 |
---|---|---|
committer | Vik Bhatti <vik@vikbhatti.com> | 2014-04-08 14:50:52 +0100 |
commit | 8d9ea35a00f133083e752d199a1102b00827876f (patch) | |
tree | f86cad23c5c5f842442b15a905ea3c92262cf254 /manifests/config.pp | |
parent | 275cd8672ac5a0144f4d96ba39f0db6705786fc4 (diff) | |
parent | c3a5a8f338776255859d50f4b906642f540cb162 (diff) |
Pulled from upstream
Diffstat (limited to 'manifests/config.pp')
-rw-r--r-- | manifests/config.pp | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/manifests/config.pp b/manifests/config.pp index 49e5230..c7196f2 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,3 +1,18 @@ +# == Define: python::config +# +# Optionally installs the gunicorn service +# +# === Examples +# +# include python::config +# +# === Authors +# +# Sergey Stankevich +# Ashley Penney +# Fotis Gimian +# + class python::config { Class['python::install'] -> Python::Pip <| |> @@ -6,17 +21,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', + } } } |