-
Notifications
You must be signed in to change notification settings - Fork 23
/
dns_conf.py
44 lines (38 loc) · 1.38 KB
/
dns_conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import string
template = string.Template("""#
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
# DNS configuration options
#
[DEFAULT]
# collectors= # Provided by discovery server
# dns_config_file=contrail-dns.conf
# 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
hostip=$__contrail_host_ip__ # Resolved IP of `hostname`
hostname=$__contrail_hostname__ # Retrieved as `hostname`
# 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
# Sandesh send rate limit can be used to throttle system logs transmitted per
# second. System logs are dropped if the sending rate is exceeded
# sandesh_send_rate_limit=100
[DISCOVERY]
# port=5998
server=$__contrail_discovery_ip__ # discovery-server IP address
[IFMAP]
certs_store=$__contrail_cert_ops__
password=$__contrail_ifmap_paswd__
# server_url= # Provided by discovery server, e.g. https://127.0.0.1:8443
user=$__contrail_ifmap_usr__
""")