Merge "Bind vncserver_proxyclient_address to internal network."

This commit is contained in:
Jenkins 2016-11-30 12:25:54 +00:00 committed by Gerrit Code Review
commit 0589d1b1a5
3 changed files with 15 additions and 2 deletions

View File

@ -311,6 +311,14 @@ options:
wait for you to execute the openstack-upgrade action for this charm on
each unit. If False it will revert to existing behavior of upgrading
all units on config change.
os-internal-network:
type: string
default:
description: |
The IP address and netmask of the OpenStack Internal network (e.g.
192.168.0.0/24)
This network will be used to bind vncproxy client.
harden:
default:
type: string

View File

@ -40,7 +40,10 @@ from charmhelpers.contrib.openstack.utils import (
get_os_version_package,
get_os_version_codename,
)
from charmhelpers.contrib.openstack.ip import (
INTERNAL,
resolve_address,
)
from charmhelpers.contrib.network.ip import (
get_ipv6_addr,
)
@ -533,7 +536,7 @@ class InstanceConsoleContext(context.OSContextGenerator):
else:
ctxt = dict(ctxt, **self.get_console_info(proto, **rel))
break
ctxt['console_listen_addr'] = get_host_ip(unit_get('private-address'))
ctxt['console_listen_addr'] = resolve_address(endpoint_type=INTERNAL)
return ctxt

View File

@ -21,6 +21,8 @@ provides:
nrpe-external-master:
interface: nrpe-external-master
scope: container
extra-bindings:
internal:
requires:
shared-db:
interface: mysql-shared