diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-11-13 17:53:30 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-11-13 17:53:30 +0000 |
commit | af8dd8bbe74ca5f756d259a75bc867a51e8fa424 (patch) | |
tree | 872e8567797348c1d842d23ee62074f172dca931 /network/endpoints/endpoint.yaml | |
parent | 4255cfce520ae0be8634a08dbe51b53e849dd5e3 (diff) | |
parent | ce309763c6da3c50d613ee243d98c215b3a13465 (diff) |
Merge "Refacter Endpoints into EndpointMap"
Diffstat (limited to 'network/endpoints/endpoint.yaml')
-rw-r--r-- | network/endpoints/endpoint.yaml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/network/endpoints/endpoint.yaml b/network/endpoints/endpoint.yaml new file mode 100644 index 00000000..8ffd6c4b --- /dev/null +++ b/network/endpoints/endpoint.yaml @@ -0,0 +1,55 @@ +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 + +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] } + host: + str_replace: + template: {get_param: [EndpointMap, {get_param: EndpointName }, host]} + params: {IP_ADDRESS: {get_param: IP} } + 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} } + - ':' + - {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} } + - ':' + - {get_param: [EndpointMap, {get_param: EndpointName }, port] } |