| {%- from "opencontrail/map.jinja" import control with context %} |
| # |
| # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. |
| # |
| # DNS configuration options |
| # |
| |
| [DEFAULT] |
| # collectors= # Provided by discovery server |
| # dns_config_file=dns_config.xml |
| # named_config_file=contrail-named.conf # named config file |
| # named_config_directory=/etc/contrail/dns # named config directory |
| # named_log_file=/var/log/contrail/contrail-named.log # named log file |
| # rndc_config_file=contrail-rndc.conf # rndc config file |
| # rndc_secret=secretkey # rndc secret |
| # resolv_conf_file= # Absolute path to file containing nameservers list |
| {%- if control.get('dns', {}).get('forwarders', []) %} |
| resolv_conf_file=/etc/contrail/resolv.conf |
| {%- endif %} |
| # /etc/resolv.conf is used as default if none specified. |
| |
| hostip={{ control.bind.address }} # Resolved IP of `hostname` |
| {%- if control.name is defined %} |
| hostname={{ control.name }} |
| {%- else %} |
| hostname={{ pillar.linux.system.name }} |
| {%- endif %} |
| # http_server_port=8092 |
| # dns_server_port=53 |
| # log_category= |
| # log_disable=0 |
| log_file=/var/log/contrail/contrail-dns.log |
| # log_files_count=10 |
| # log_file_size=1048576 # 1MB |
| log_level=SYS_NOTICE |
| log_local=1 |
| # test_mode=0 |
| |
| [DISCOVERY] |
| # port=5998 |
| server={{ control.discovery.host }} # discovery-server IP address |
| |
| [IFMAP] |
| certs_store= |
| {%- if control.id is defined %} |
| password=control-node-{{ control.id }}.dns |
| user=control-node-{{ control.id }}.dns |
| {%- else %} |
| password={{ control.name }}.dns |
| user={{ control.name }}.dns |
| {%- endif %} |
| # server_url= # Provided by discovery server, e.g. https://127.0.0.1:8443 |
| |