view modules/python/examples/gunicorn.pp @ 478:adf6fe9bbc17

Update Puppet modules to latest versions
author IBBoard <dev@ibboard.co.uk>
date Thu, 29 Aug 2024 18:47:29 +0100
parents c42fb28cff86
children
line wrap: on
line source

class { 'python':
  version => 'system',
  dev     => true,
}

python::gunicorn { 'vhost':
  ensure      => present,
  virtualenv  => '/var/www/project1',
  mode        => 'wsgi',
  dir         => '/var/www/project1/current',
  bind        => 'unix:/tmp/gunicorn.socket',
  environment => 'prod',
  appmodule   => 'app:app',
  osenv       => {
    'DBHOST' => 'dbserver.example.com',
  },
  timeout     => 30,
  template    => 'python/gunicorn.erb',
}