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