Escape IPv6 address in gunicorn config file
... to make sure the separator between address and port can be
distinguished from the ones used in the address value.
Change-Id: I41e9c8173f3ebd8eb5ef003aadfd384975ee96cc
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
(cherry picked from commit 033369bc9c)
This commit is contained in:
@@ -457,9 +457,11 @@ Use the parameters of the barbican class.")
|
|||||||
|
|
||||||
# Debian is using UWSGI, not gunicorn
|
# Debian is using UWSGI, not gunicorn
|
||||||
if $facts['os']['name'] != 'Debian' {
|
if $facts['os']['name'] != 'Debian' {
|
||||||
|
$bind_host_real = normalize_ip_for_uri($bind_host)
|
||||||
|
|
||||||
file_line { 'Modify bind_port in gunicorn-config.py':
|
file_line { 'Modify bind_port in gunicorn-config.py':
|
||||||
path => '/etc/barbican/gunicorn-config.py',
|
path => '/etc/barbican/gunicorn-config.py',
|
||||||
line => "bind = '${bind_host}:${bind_port}'",
|
line => "bind = '${bind_host_real}:${bind_port}'",
|
||||||
match => '^bind = .*',
|
match => '^bind = .*',
|
||||||
tag => 'modify-bind-port',
|
tag => 'modify-bind-port',
|
||||||
require => Anchor['barbican::config::begin'],
|
require => Anchor['barbican::config::begin'],
|
||||||
|
|||||||
Reference in New Issue
Block a user