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