File tree 2 files changed +24
-12
lines changed
2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 66
66
# Marc Fournier
67
67
#
68
68
define python::gunicorn (
69
- $ensure = present ,
70
- $virtualenv = false ,
71
- $mode = ' wsgi' ,
72
- $dir = false ,
73
- $bind = false ,
74
- $environment = false ,
75
- $owner = ' www-data' ,
76
- $group = ' www-data' ,
77
- $appmodule = ' app:app' ,
78
- $osenv = false ,
79
- $timeout = 30,
80
- $template = ' python/gunicorn.erb' ,
69
+ $ensure = present ,
70
+ $virtualenv = false ,
71
+ $mode = ' wsgi' ,
72
+ $dir = false ,
73
+ $bind = false ,
74
+ $environment = false ,
75
+ $owner = ' www-data' ,
76
+ $group = ' www-data' ,
77
+ $appmodule = ' app:app' ,
78
+ $osenv = false ,
79
+ $timeout = 30,
80
+ $access_log_format = false ,
81
+ $accesslog = false ,
82
+ $errorlog = false ,
83
+ $template = ' python/gunicorn.erb' ,
81
84
) {
82
85
83
86
# Parameter validation
Original file line number Diff line number Diff line change @@ -33,6 +33,15 @@ CONFIG = {
33
33
<% end -%>
34
34
'--workers=<%= @processorcount.to_i*2 %> ',
35
35
'--timeout=<%= @timeout %> ',
36
+ <% if @access_log_format -%>
37
+ '--access-logformat=<%= @access_log_format %> ',
38
+ <% end -%>
39
+ <% if @accesslog -%>
40
+ '--access-logfile=<%= @accesslog %> ',
41
+ <% end -%>
42
+ <% if @errorlog -%>
43
+ '--error-logfile=<%= @errorlog %> ',
44
+ <% end -%>
36
45
<% if @mode != 'django' -%>
37
46
'<%= @appmodule %> ',
38
47
<% end -%>
You can’t perform that action at this time.
0 commit comments