~billy-olsen/charms/trusty/cinder/rich-endpoint-overrides

Viewing all changes in revision 135.

  • Committer: billy.olsen at canonical
  • Date: 2015-11-16 23:41:04 UTC
  • Revision ID: billy.olsen@canonical.com-20151116234104-nithn0qur45spkte
Allow the os-public-hostname to specify a URL in addition to a
hostname in order to allow advanced mapping of the public endpoints
for gateway type services.

This allows multiple variables to be inserted into the hostname/url
in order to allow such reverse mapping to be done. The following
variables are replaced within the hostname/url:

  port - the service port
  address - the public hostname/address
  service_name - the name of the service
  path - the path of the service-defined endpoint path
  scheme - the uri scheme/protocol (e.g. http, https)

Allowing for advanced hostname specifications such as:

  https://${service_name}.example.net:${port}/${path}

In this form, 2 endpoints will be registered:

  https://cinder.example.net:8776/v1/$(tenant_id)s
  https://cinder.example.net:8776/v2/$(tenant_id)s

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: