1c8f6a5a81c181671dd69a139b51eb0d6799a89c
[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   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18
19 resources:
20   NovaBase:
21     type: ./nova-base.yaml
22     properties:
23       ServiceNetMap: {get_param: ServiceNetMap}
24       EndpointMap: {get_param: EndpointMap}
25
26 outputs:
27   role_data:
28     description: Role data for the Nova Vncproxy service.
29     value:
30       service_name: nova_vncproxy
31       config_settings:
32         map_merge:
33           - get_attr: [NovaBase, role_data, config_settings]
34           - nova::vncproxy::enabled: true
35             nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
36             # Remove brackets that may come if the IP address is IPv6.
37             # For DNS names and IPv4, this will just get NovaVNCProxyPublic
38             nova::vncproxy::common::vncproxy_host:
39               str_replace:
40                 template: {get_param: [EndpointMap, NovaVNCProxyPublic, host]}
41                 params:
42                   '[': ''
43                   ']': ''
44             nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
45       step_config: |
46         include tripleo::profile::base::nova::vncproxy