| {%- from "opencontrail/map.jinja" import config with context %} |
| |
| [global] |
| ;WEB_SERVER = 127.0.0.1 |
| ;WEB_PORT = 9696 ; connection through quantum plugin |
| |
| WEB_SERVER = {{ config.bind.address }} |
| WEB_PORT = {{ config.bind.get('api_port', '8082') }} |
| ; connection to api-server directly |
| BASE_URL = / |
| ;BASE_URL = /tenants/infra ; common-prefix for all URLs |
| |
| {%- if config.api.use_ssl == True %} |
| certfile = {{ config.api.certfile }} |
| keyfile = {{ config.api.keyfile }} |
| cafile = {{ config.api.cafile }} |
| {%- endif %} |
| |
| ; Authentication settings (optional) |
| {%- if config.identity.engine == "keystone" %} |
| [auth] |
| AUTHN_TYPE = keystone |
| AUTHN_PROTOCOL = {{ config.identity.protocol }} |
| AUTHN_SERVER= {{ config.identity.host }} |
| AUTHN_PORT = {{ config.identity.port }} |
| AUTHN_TENANT = {{ config.identity.tenant }} |
| AUTHN_USER = {{ config.identity.user }} |
| AUTHN_PASSWORD = {{ config.identity.password }} |
| {%- if config.identity.version == "3" %} |
| AUTHN_URL = /v3/auth/tokens |
| {%- else %} |
| AUTHN_URL = /v2.0/tokens |
| {%- endif %} |
| |
| |
| {%- endif %} |