2db44d6fcc79a22a04c769be36364876f5342fb6
[apex-tripleo-heat-templates.git] / puppet / services / nova-vnc-proxy.yaml
1 heat_template_version: pike
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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   MonitoringSubscriptionNovaVNCProxy:
30     default: 'overcloud-nova-vncproxy'
31     type: string
32   NovaVncproxyLoggingSource:
33     type: json
34     default:
35       tag: openstack.nova.vncproxy
36       path: /var/log/nova/nova-vncproxy.log
37
38 resources:
39   NovaBase:
40     type: ./nova-base.yaml
41     properties:
42       ServiceNetMap: {get_param: ServiceNetMap}
43       DefaultPasswords: {get_param: DefaultPasswords}
44       EndpointMap: {get_param: EndpointMap}
45       RoleName: {get_param: RoleName}
46       RoleParameters: {get_param: RoleParameters}
47
48 outputs:
49   role_data:
50     description: Role data for the Nova Vncproxy service.
51     value:
52       service_name: nova_vnc_proxy
53       monitoring_subscription: {get_param: MonitoringSubscriptionNovaVNCProxy}
54       logging_source: {get_param: NovaVncproxyLoggingSource}
55       logging_groups:
56         - nova
57       config_settings:
58         map_merge:
59           - get_attr: [NovaBase, role_data, config_settings]
60           - nova::vncproxy::enabled: true
61             nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
62             nova::vncproxy::common::vncproxy_host: {get_param: [EndpointMap, NovaVNCProxyPublic, host_nobrackets]}
63             nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
64             # NOTE: bind IP is found in Heat replacing the network name with the local node IP
65             # for the given network; replacement examples (eg. for internal_api):
66             # internal_api -> IP
67             # internal_api_uri -> [IP]
68             # internal_api_subnet - > IP/CIDR
69             nova::vncproxy::host: {get_param: [ServiceNetMap, NovaApiNetwork]}
70             tripleo.nova_vnc_proxy.firewall_rules:
71               '137 nova_vnc_proxy':
72                 dport:
73                   - 6080
74                   - 13080
75       step_config: |
76         include tripleo::profile::base::nova::vncproxy
77       upgrade_tasks:
78         - name: Stop nova_vnc_proxy service
79           tags: step1
80           service: name=openstack-nova-consoleauth state=stopped