Rename config host to host_ip in api group
The 'host' config is actually an IP address. Let's rename it to make it clear and consistent with other projects (i.e. Ironic). Change-Id: I48a8a69c5049341afff545fcabebf0053ab1d242
This commit is contained in:
parent
8c0cc5033f
commit
11ce4753ea
@ -198,7 +198,7 @@ function create_zun_conf {
|
||||
iniset $ZUN_CONF database connection `database_connection_url zun`
|
||||
iniset $ZUN_CONF etcd etcd_host "$HOST_IP"
|
||||
iniset $ZUN_CONF etcd etcd_port 2379
|
||||
iniset $ZUN_CONF api host "$ZUN_SERVICE_HOST"
|
||||
iniset $ZUN_CONF api host_ip "$ZUN_SERVICE_HOST"
|
||||
iniset $ZUN_CONF api port "$ZUN_SERVICE_PORT"
|
||||
|
||||
iniset $ZUN_CONF oslo_policy policy_file $ZUN_POLICY_JSON
|
||||
|
@ -64,7 +64,7 @@ class WSGIService(service.ServiceBase):
|
||||
"must be greater than 0.") % self.workers)
|
||||
|
||||
self.server = wsgi.Server(CONF, name, self.app,
|
||||
host=CONF.api.host,
|
||||
host=CONF.api.host_ip,
|
||||
port=CONF.api.port,
|
||||
use_ssl=use_ssl)
|
||||
|
||||
|
@ -18,7 +18,7 @@ api_service_opts = [
|
||||
cfg.PortOpt('port',
|
||||
default=9512,
|
||||
help='The port for the zun API server.'),
|
||||
cfg.IPOpt('host',
|
||||
cfg.IPOpt('host_ip',
|
||||
default='127.0.0.1',
|
||||
help='The listen IP for the zun API server.'),
|
||||
cfg.BoolOpt('enable_ssl_api',
|
||||
|
Loading…
x
Reference in New Issue
Block a user