Merge "Remove deprecated node_ips hiera keys"
[apex-tripleo-heat-templates.git] / puppet / services / nova-vncproxy.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Nova Vncproxy service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12
13 resources:
14   NovaBase:
15     type: ./nova-base.yaml
16     properties:
17       EndpointMap: {get_param: EndpointMap}
18
19 outputs:
20   role_data:
21     description: Role data for the Nova Vncproxy service.
22     value:
23       service_name: nova_vncproxy
24       config_settings:
25         map_merge:
26           - get_attr: [NovaBase, role_data, config_settings]
27           - nova::vncproxy::enabled: true
28             nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
29             # Remove brackets that may come if the IP address is IPv6.
30             # For DNS names and IPv4, this will just get NovaVNCProxyPublic
31             nova::vncproxy::common::vncproxy_host:
32               str_replace:
33                 template: {get_param: [EndpointMap, NovaVNCProxyPublic, host]}
34                 params:
35                   '[': ''
36                   ']': ''
37             nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
38       step_config: |
39         include tripleo::profile::base::nova::vncproxy