899fa353781729fa1b42836712f8e62014d1d5be
[apex-tripleo-heat-templates.git] / puppet / services / nova-vnc-proxy.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   MonitoringSubscriptionNovaVNCProxy:
22     default: 'overcloud-nova-vncproxy'
23     type: string
24
25 resources:
26   NovaBase:
27     type: ./nova-base.yaml
28     properties:
29       ServiceNetMap: {get_param: ServiceNetMap}
30       DefaultPasswords: {get_param: DefaultPasswords}
31       EndpointMap: {get_param: EndpointMap}
32
33 outputs:
34   role_data:
35     description: Role data for the Nova Vncproxy service.
36     value:
37       service_name: nova_vnc_proxy
38       monitoring_subscription: {get_param: MonitoringSubscriptionNovaVNCProxy}
39       config_settings:
40         map_merge:
41           - get_attr: [NovaBase, role_data, config_settings]
42           - nova::vncproxy::enabled: true
43             nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
44             nova::vncproxy::common::vncproxy_host: {get_param: [EndpointMap, NovaVNCProxyPublic, host_nobrackets]}
45             nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
46             # NOTE: bind IP is found in Heat replacing the network name with the local node IP
47             # for the given network; replacement examples (eg. for internal_api):
48             # internal_api -> IP
49             # internal_api_uri -> [IP]
50             # internal_api_subnet - > IP/CIDR
51             nova::vncproxy::host: {get_param: [ServiceNetMap, NovaApiNetwork]}
52       step_config: |
53         include tripleo::profile::base::nova::vncproxy