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