File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,13 +90,16 @@ Manages Gunicorn virtual hosts.
9090
9191** environment** — Set ENVIRONMENT variable. Default: none
9292
93+ ** template** — Which ERB template to use. Default: python/gunicorn.erb
94+
9395 python::gunicorn { 'vhost':
9496 ensure => present,
9597 virtualenv => '/var/www/project1',
9698 mode => 'wsgi',
9799 dir => '/var/www/project1/current',
98100 bind => 'unix:/tmp/gunicorn.socket',
99101 environment => 'prod',
102+ template => 'python/gunicorn.erb',
100103 }
101104
102105## Authors
Original file line number Diff line number Diff line change 2525# [*environment*]
2626# Set ENVIRONMENT variable. Default: none
2727#
28+ # [*template*]
29+ # Which ERB template to use. Default: python/gunicorn.erb
30+ #
2831# === Examples
2932#
3033# python::gunicorn { 'vhost':
3437# dir => '/var/www/project1/current',
3538# bind => 'unix:/tmp/gunicorn.socket',
3639# environment => 'prod',
40+ # template => 'python/gunicorn.erb',
3741# }
3842#
3943# === Authors
4751 $dir = false ,
4852 $bind = false ,
4953 $environment = false ,
54+ $template = ' python/gunicorn.erb' ,
5055) {
5156
5257 # Parameter validation
5964 mode => ' 0644' ,
6065 owner => ' root' ,
6166 group => ' root' ,
62- content => template (' python/gunicorn.erb ' ),
67+ content => template ($template ),
6368 }
6469
6570}
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+ template => ' python/gunicorn.erb' ,
1415}
You can’t perform that action at this time.
0 commit comments