diff options
author | Sergey Stankevich <sergey.stankevich@gmail.com> | 2014-01-04 10:24:07 +0300 |
---|---|---|
committer | Sergey Stankevich <sergey.stankevich@gmail.com> | 2014-01-04 10:24:07 +0300 |
commit | 042f4eed2e15834a3c49abab485e5037ab805ca3 (patch) | |
tree | 912cc2c4dd17317561427e0e4cf09cff076a1cef /manifests/config.pp | |
parent | 9d019a6cba04f95a14a8d57fc2510732e9a5b53e (diff) | |
parent | fdf81012ea5f3d8124c86f41d91e4e97f769bc80 (diff) |
Merging master
Diffstat (limited to 'manifests/config.pp')
-rw-r--r-- | manifests/config.pp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/manifests/config.pp b/manifests/config.pp index 52c10be..c7196f2 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -21,17 +21,20 @@ 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', + } } } -}
\ No newline at end of file + +} |