| {%- from "opencontrail/map.jinja" import config with context %} |
| [DEFAULTS] |
| ifmap_server_ip={{ config.bind.address }} |
| ifmap_server_port=8443 |
| ifmap_username=api-server |
| ifmap_password=api-server |
| cassandra_server_list={% for member in config.database.members %}{{ member.host }}:9160 {% endfor %} |
| listen_ip_addr=0.0.0.0 |
| listen_port={{ config.bind.get('api_port', '8082') }} |
| multi_tenancy={{ config.get('multi_tenancy', 'true')|lower }} |
| log_file=/var/log/contrail/contrail-api.log |
| log_local=1 |
| log_level=SYS_NOTICE |
| disc_server_ip={{ config.discovery.host }} |
| disc_server_port=5998 |
| #zk_server_ip=10.0.102.31:2181,10.0.102.32:2181,10.0.102.33:2181 |
| zk_server_ip={% for member in config.database.members %}{{ member.host }}:2181{% if not loop.last %},{% endif %}{% endfor %} |
| redis_server_ip=$__contrail_redis_ip__ |
| {%- if config.message_queue.members is defined %} |
| rabbit_server={{ config.message_queue.members|join(',',attribute='host') }} |
| rabbit_ha_mode=True |
| {%- else %} |
| rabbit_server={{ config.message_queue.host }} |
| {%- endif %} |
| rabbit_port={{ config.message_queue.port }} |
| {%- if config.identity.engine == "keystone" and not config.get('k8s_enabled', False) %} |
| auth=keystone |
| {%- endif %} |
| #rabbit_port=5673{{ config.message_queue.port }} |
| {%- if config.message_queue.virtual_host is defined %} |
| rabbit_vhost={{config.message_queue.virtual_host}} |
| {%- endif %} |
| {%- if config.message_queue.user is defined %} |
| rabbit_user={{config.message_queue.user}} |
| {%- endif %} |
| {%- if config.message_queue.password is defined %} |
| rabbit_password={{config.message_queue.password}} |
| {%- endif %} |
| {% if config.override_rpf_default_by is defined %} |
| override_rpf_default_by={{ config.override_rpf_default_by | lower }} |
| {% endif %} |
| {%- if config.get('list_optimization_enabled', False) %} |
| list_optimization_enabled=True |
| {%- endif %} |
| |
| [SECURITY] |
| use_certs=False |
| keyfile=/etc/contrail/ssl/private_keys/apiserver_key.pem |
| certfile=/etc/contrail/ssl/certs/apiserver.pem |
| ca_certs=/etc/contrail/ssl/certs/ca.pem |
| |
| [KEYSTONE] |
| keystone_sync_on_demand={{ config.identity.get('sync_on_demand', 'true') }} |