diff options
author | kwadronaut <kwadronaut@leap.se> | 2014-07-29 19:08:36 +0200 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2014-07-29 19:08:36 +0200 |
commit | ba32e368e22078cac65d27531a1cf7d0962ec984 (patch) | |
tree | d28ae4bd79d5d4f61ecf3d8b8cd55c9e306b960d /manifests/config.pp | |
parent | 78c4e8d748138833ba07b71bcfc1ea538c4a2dfb (diff) | |
parent | 1696203589b66cc374bd8f5f21e82d5b92eb391b (diff) |
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', + } } } |