File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ Manages Gunicorn virtual hosts.
174174
175175** appmodule** - Set the application module name for gunicorn to load when not using Django. Default: app: app
176176
177+ ** osenv** - Allows setting environment variables for the gunicorn service. Accepts a hash of 'key': 'value' pairs. Default: false
178+
177179** template** - Which ERB template to use. Default: python/gunicorn.erb
178180
179181``` puppet
@@ -185,6 +187,7 @@ Manages Gunicorn virtual hosts.
185187 bind => 'unix:/tmp/gunicorn.socket',
186188 environment => 'prod',
187189 appmodule => 'app:app',
190+ osenv => { 'DBHOST' => 'dbserver.example.com' },
188191 template => 'python/gunicorn.erb',
189192 }
190193```
Original file line number Diff line number Diff line change 2929# Set the application module name for gunicorn to load when not using Django.
3030# Default: app:app
3131#
32+ # [*osenv*]
33+ # Allows setting environment variables for the gunicorn service. Accepts a
34+ # hash of 'key': 'value' pairs.
35+ # Default: false
36+ #
3237# [*template*]
3338# Which ERB template to use. Default: python/gunicorn.erb
3439#
4449# owner => 'www-data',
4550# group => 'www-data',
4651# appmodule => 'app:app',
52+ # osenv => { 'DBHOST' => 'dbserver.example.com' },
4753# template => 'python/gunicorn.erb',
4854# }
4955#
Original file line number Diff line number Diff line change 1111 dir => ' /var/www/project1/current' ,
1212 bind => ' unix:/tmp/gunicorn.socket' ,
1313 environment => ' prod' ,
14+ appmodule => ' app:app' ,
15+ osenv => { ' DBHOST' => ' dbserver.example.com' },
1416 template => ' python/gunicorn.erb' ,
1517}
You can’t perform that action at this time.
0 commit comments