aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/nova-vnc-proxy.yaml
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2016-08-30 15:58:43 -0500
committerGiulio Fidente <gfidente@redhat.com>2016-09-12 16:35:22 +0200
commit57898b416234afe3f9ba15488d521711644cf375 (patch)
tree439d6dde0ab49d66be5133297017a437dc626034 /puppet/services/nova-vnc-proxy.yaml
parentede33f67b9d35e13b0341732852f76e84e115245 (diff)
De-bracket vncproxy_host in compute profile
This is done in the vncproxy profile, but for some reason is not in the compute one. It causes hiera to explode when the brackets are left, so we need to do the bracket stripping here too. Also switches both places to just use the host_nobrackets version of the endpoint instead of stripping them with str_replace. Change-Id: I7ccd84b575fd652f6412fdb1869c31c79a7bf53b Closes-Bug: 1618623
Diffstat (limited to 'puppet/services/nova-vnc-proxy.yaml')
-rw-r--r--puppet/services/nova-vnc-proxy.yaml9
1 files changed, 1 insertions, 8 deletions
diff --git a/puppet/services/nova-vnc-proxy.yaml b/puppet/services/nova-vnc-proxy.yaml
index 179112d3..899fa353 100644
--- a/puppet/services/nova-vnc-proxy.yaml
+++ b/puppet/services/nova-vnc-proxy.yaml
@@ -41,14 +41,7 @@ outputs:
- get_attr: [NovaBase, role_data, config_settings]
- nova::vncproxy::enabled: true
nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
- # Remove brackets that may come if the IP address is IPv6.
- # For DNS names and IPv4, this will just get NovaVNCProxyPublic
- nova::vncproxy::common::vncproxy_host:
- str_replace:
- template: {get_param: [EndpointMap, NovaVNCProxyPublic, host]}
- params:
- '[': ''
- ']': ''
+ nova::vncproxy::common::vncproxy_host: {get_param: [EndpointMap, NovaVNCProxyPublic, host_nobrackets]}
nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
# NOTE: bind IP is found in Heat replacing the network name with the local node IP
# for the given network; replacement examples (eg. for internal_api):