2016-06-06 20:33:24 +00:00
|
|
|
heat_template_version: 2016-04-08
|
|
|
|
|
|
|
|
description: >
|
|
|
|
OpenStack Nova Vncproxy service configured with Puppet
|
|
|
|
|
|
|
|
parameters:
|
2016-08-11 21:07:46 +00:00
|
|
|
ServiceNetMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service_name -> network name. Typically set
|
|
|
|
via parameter_defaults in the resource registry. This
|
|
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
|
|
type: json
|
2016-08-17 13:26:05 +00:00
|
|
|
DefaultPasswords:
|
|
|
|
default: {}
|
|
|
|
type: json
|
2016-06-06 20:33:24 +00:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
2016-06-09 13:39:22 +00:00
|
|
|
MonitoringSubscriptionNovaVNCProxy:
|
|
|
|
default: 'overcloud-nova-vncproxy'
|
|
|
|
type: string
|
2016-06-06 20:33:24 +00:00
|
|
|
|
|
|
|
resources:
|
|
|
|
NovaBase:
|
|
|
|
type: ./nova-base.yaml
|
2016-06-29 15:30:08 +00:00
|
|
|
properties:
|
2016-08-11 21:07:46 +00:00
|
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
2016-08-17 13:26:05 +00:00
|
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
2016-06-29 15:30:08 +00:00
|
|
|
EndpointMap: {get_param: EndpointMap}
|
2016-06-06 20:33:24 +00:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
|
|
|
description: Role data for the Nova Vncproxy service.
|
|
|
|
value:
|
2016-07-28 09:30:10 +00:00
|
|
|
service_name: nova_vncproxy
|
2016-06-09 13:39:22 +00:00
|
|
|
monitoring_subscription: {get_param: MonitoringSubscriptionNovaVNCProxy}
|
2016-06-06 20:33:24 +00:00
|
|
|
config_settings:
|
2016-07-13 15:29:43 +00:00
|
|
|
map_merge:
|
|
|
|
- get_attr: [NovaBase, role_data, config_settings]
|
|
|
|
- nova::vncproxy::enabled: true
|
2016-08-10 21:35:30 +00:00
|
|
|
nova::vncproxy::common::vncproxy_protocol: {get_param: [EndpointMap, NovaVNCProxyPublic, protocol]}
|
|
|
|
# Remove brackets that may come if the IP address is IPv6.
|
|
|
|
# For DNS names and IPv4, this will just get NovaVNCProxyPublic
|
|
|
|
nova::vncproxy::common::vncproxy_host:
|
|
|
|
str_replace:
|
|
|
|
template: {get_param: [EndpointMap, NovaVNCProxyPublic, host]}
|
|
|
|
params:
|
|
|
|
'[': ''
|
|
|
|
']': ''
|
|
|
|
nova::vncproxy::common::vncproxy_port: {get_param: [EndpointMap, NovaVNCProxyPublic, port]}
|
2016-08-26 16:41:53 +00:00
|
|
|
# NOTE: bind IP is found in Heat replacing the network name with the local node IP
|
|
|
|
# for the given network; replacement examples (eg. for internal_api):
|
|
|
|
# internal_api -> IP
|
|
|
|
# internal_api_uri -> [IP]
|
|
|
|
# internal_api_subnet - > IP/CIDR
|
|
|
|
nova::vncproxy::host: {get_param: [ServiceNetMap, NovaApiNetwork]}
|
2016-06-06 20:33:24 +00:00
|
|
|
step_config: |
|
|
|
|
include tripleo::profile::base::nova::vncproxy
|