Debian: do not configure gunicorn-config.py
Debian isn't using gunicorn for Barbican, but UWSGI. Without this patch, this module simply wouldn't work for Debian. Change-Id: Iaafc7f4b1499df471a35410228a7ad86938e94cc
This commit is contained in:
parent
062c866e29
commit
60d3b68266
@ -479,11 +479,14 @@ class barbican::api (
|
||||
tag => 'barbican-service',
|
||||
}
|
||||
|
||||
file_line { 'Modify bind_port in gunicorn-config.py':
|
||||
path => '/etc/barbican/gunicorn-config.py',
|
||||
line => "bind = '${bind_host}:${bind_port}'",
|
||||
match => '.*bind = .*',
|
||||
tag => 'modify-bind-port',
|
||||
# Debian is using UWSGI, not gunicorn
|
||||
if $::os_package_type != 'debian' {
|
||||
file_line { 'Modify bind_port in gunicorn-config.py':
|
||||
path => '/etc/barbican/gunicorn-config.py',
|
||||
line => "bind = '${bind_host}:${bind_port}'",
|
||||
match => '.*bind = .*',
|
||||
tag => 'modify-bind-port',
|
||||
}
|
||||
}
|
||||
|
||||
} elsif $service_name == 'httpd' {
|
||||
|
Loading…
x
Reference in New Issue
Block a user