42335adeedfcdc342fff70771db7073df912093d
[apex-tripleo-heat-templates.git] / puppet / services / nova-vnc-proxy.yaml
1 heat_template_version: ocata
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   NovaVncproxyLoggingSource:
25     type: json
26     default:
27       tag: openstack.nova.vncproxy
28       path: /var/log/nova/nova-vncproxy.log
29
30 resources:
31   NovaBase:
32     type: ./nova-base.yaml
33     properties:
34       ServiceNetMap: {get_param: ServiceNetMap}
35       DefaultPasswords: {get_param: DefaultPasswords}
36       EndpointMap: {get_param: EndpointMap}
37
38 outputs:
39   role_data:
40     description: Role data for the Nova Vncproxy service.
41     value:
42       service_name: nova_vnc_proxy
43       monitoring_subscription: {get_param: MonitoringSubscriptionNovaVNCProxy}
44       logging_source: {get_param: NovaVncproxyLoggingSource}
45       logging_groups:
46         - nova
47       config_settings:
48         map_merge:
49           - get_attr: [NovaBase, role_data, config_settings]
50           - nova::vncproxy::enabled: true
51             nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
52             nova::vncproxy::common::vncproxy_host: {get_param: [EndpointMap, NovaVNCProxyPublic, host_nobrackets]}
53             nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
54             # NOTE: bind IP is found in Heat replacing the network name with the local node IP
55             # for the given network; replacement examples (eg. for internal_api):
56             # internal_api -> IP
57             # internal_api_uri -> [IP]
58             # internal_api_subnet - > IP/CIDR
59             nova::vncproxy::host: {get_param: [ServiceNetMap, NovaApiNetwork]}
60             tripleo.nova_vnc_proxy.firewall_rules:
61               '137 nova_vnc_proxy':
62                 dport:
63                   - 6080
64                   - 13080
65       step_config: |
66         include tripleo::profile::base::nova::vncproxy
67       upgrade_tasks:
68         - name: Stop nova_vnc_proxy service
69           tags: step1
70           service: name=openstack-nova-consoleauth state=stopped