blob: 62c90667db7c939eb3dc3904289138e91106be31 [file] [log] [blame]
{%- 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
; 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 %}
insecure = true
{%- endif %}