Mercurial > repos > other > Puppet
view modules/python/manifests/config.pp @ 387:66c075c5f54a
Update to newer Python module
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 03 Jan 2022 17:13:06 +0000 |
parents | c42fb28cff86 |
children |
line wrap: on
line source
# @api private # @summary Optionally installs the gunicorn service # # @example # include python::config # class python::config { Class['python::install'] -> Python::Pip <| |> Class['python::install'] -> Python::Requirements <| |> if $python::manage_gunicorn { unless $python::gunicorn == 'absent' { Class['python::install'] -> Python::Gunicorn <| |> Python::Gunicorn <| |> ~> Service['gunicorn'] service { 'gunicorn': ensure => running, enable => true, hasrestart => true, hasstatus => false, pattern => '/usr/bin/gunicorn', } } } }