[gnuoy, r=jamespage] Enable haproxy for when there is a single unit in a deployment
This commit is contained in:
commit
88404a7aa3
@ -75,8 +75,8 @@ class HAProxyContext(OSContextGenerator):
|
||||
Also used to extend glance-api.conf context with correct bind_port
|
||||
'''
|
||||
haproxy_port = 9292
|
||||
apache_port = determine_apache_port(9292)
|
||||
api_port = determine_api_port(9292)
|
||||
apache_port = determine_apache_port(9292, singlenode_mode=True)
|
||||
api_port = determine_api_port(9292, singlenode_mode=True)
|
||||
|
||||
ctxt = {
|
||||
'service_ports': {'glance_api': [haproxy_port, apache_port]},
|
||||
|
@ -117,7 +117,7 @@ CONFIG_FILES = OrderedDict([
|
||||
'services': ['glance-api', 'glance-registry']
|
||||
}),
|
||||
(HAPROXY_CONF, {
|
||||
'hook_contexts': [context.HAProxyContext(),
|
||||
'hook_contexts': [context.HAProxyContext(singlenode_mode=True),
|
||||
glance_contexts.HAProxyContext()],
|
||||
'services': ['haproxy'],
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user