| {%- from "opencontrail/map.jinja" import control with context %} |
| # |
| # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. |
| # |
| # Control-node configuration options |
| # |
| |
| [DEFAULT] |
| # bgp_config_file=bgp_config.xml |
| # bgp_port=179 |
| # collectors= # Provided by discovery server |
| hostip={{ control.bind.address }} # Resolved IP of `hostname` |
| #hostname=ctl-oc-1 # Retrieved as `hostname` |
| {%- if control.name is defined %} |
| hostname={{ control.name }} |
| {%- else %} |
| hostname={{ pillar.linux.system.name }} |
| {%- endif %} |
| # http_server_port=8083 |
| # log_category= |
| # log_disable=0 |
| log_file=/var/log/contrail/contrail-control.log |
| # log_files_count=10 |
| # log_file_size=10485760 # 10MB |
| log_level=SYS_NOTICE |
| log_local=1 |
| # test_mode=0 |
| # xmpp_server_port=5269 |
| |
| [DISCOVERY] |
| # port=5998 |
| server={{ control.discovery.host }} # discovery-server IP address |
| |
| [IFMAP] |
| certs_store= |
| {%- if control.id is defined %} |
| password=control-node-{{ control.id }} |
| user=control-node-{{ control.id }} |
| {%- else %} |
| password={{ control.name }} |
| user={{ control.name }} |
| {%- endif %} |
| # server_url= # Provided by discovery server, e.g. https://127.0.0.1:8443 |
| {%- if grains.get('virtual_subtype', None) == "Docker" %} |
| server_url=https://{{ control.discovery.host }}:8443 |
| {%- endif %} |