1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
heat_template_version: 2015-04-30
description: >
OpenStack Endpoint
parameters:
EndpointName:
type: string
description: The name of the Endpoint being evaluated
EndpointMap:
type: json
default: {}
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
IP:
type: string
description: The IP address of the Neutron Port that the endpoint is attached to
UriSuffix:
type: string
default: ''
description: A suffix attached to the URL
CloudName:
type: string
default: ''
description: The DNS name of this cloud. E.g. ci-overcloud.tripleo.org
outputs:
endpoint:
description: >
A Hash containing a mapping of service endpoints to ports, protocols, uris
assigned IPs, and hostnames for a specific endpoint
value:
port: {get_param: [EndpointMap, {get_param: EndpointName }, port] }
protocol: {get_param: [EndpointMap, {get_param: EndpointName }, protocol] }
ip: {get_param: IP}
host:
str_replace:
template: {get_param: [EndpointMap, {get_param: EndpointName }, host]}
params: {IP_ADDRESS: {get_param: IP}, CLOUDNAME: {get_param: CloudName}}
uri:
list_join:
- ''
- - {get_param: [EndpointMap, {get_param: EndpointName }, protocol] }
- '://'
- str_replace:
template: {get_param: [EndpointMap, {get_param: EndpointName }, host]}
params: {IP_ADDRESS: {get_param: IP}, CLOUDNAME: {get_param: CloudName }}
- ':'
- {get_param: [EndpointMap, {get_param: EndpointName }, port] }
- {get_param: UriSuffix }
uri_no_suffix:
list_join:
- ''
- - {get_param: [EndpointMap, {get_param: EndpointName }, protocol] }
- '://'
- str_replace:
template: {get_param: [EndpointMap, {get_param: EndpointName }, host]}
params: {IP_ADDRESS: {get_param: IP}, CLOUDNAME: {get_param: CloudName} }
- ':'
- {get_param: [EndpointMap, {get_param: EndpointName }, port] }
|