aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/open-contrail/templates/provision/contrail-tor-agent-conf.j2
blob: 8d336e527889e0b2df070423c7acffb6077b818e (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#
# Vnswad configuration options
#

[CONTROL-NODE]
# IP address to be used to connect to control-node. Maximum of 2 IP addresses
# (separated by a space) can be provided. If no IP is configured then the
# value provided by discovery service will be used. (optional)
# server = 10.0.0.1 10.0.0.2

[DEFAULT]
agent_name = {{ ansible_hostname }}-{{ item.ansible_facts.toragent_index }}
# Everything in this section is optional

# IP address and port to be used to connect to collector. If these are not
# configured, value provided by discovery service will be used. Multiple
# IP:port strings separated by space can be provided
# collectors = 127.0.0.1:8086

# Enable/disable debug logging. Possible values are 0 (disable) and 1 (enable)
# debug = 0

# Aging time for flow-records in seconds
# flow_cache_timeout = 0

# Hostname of compute-node. If this is not configured value from `hostname`
# will be taken
# hostname =

# Category for logging. Default value is '*'
# log_category =

# Local log file name
log_file = /var/log/contrail/contrail-tor-agent-{{ item.ansible_facts.toragent_index }}.log

# Log severity levels. Possible values are SYS_EMERG, SYS_ALERT, SYS_CRIT,
# SYS_ERR, SYS_WARN, SYS_NOTICE, SYS_INFO and SYS_DEBUG. Default is SYS_DEBUG
# log_level = SYS_DEBUG

# Enable/Disable local file logging. Possible values are 0 (disable) and 1 (enable)
# log_local = 0

# Enable/Disable local flow message logging. Possible values are 0 (disable) and 1 (enable)
# log_flow = 0

# Encapsulation type for tunnel. Possible values are MPLSoGRE, MPLSoUDP, VXLAN
# tunnel_type =

# Enable/Disable headless mode for agent. In headless mode agent retains last
# known good configuration from control node when all control nodes are lost.
# Possible values are true(enable) and false(disable)
# headless_mode =

# Define agent mode. Only supported value is "tor"
agent_mode = tor

# Http server port for inspecting vnswad state (useful for debugging)
# http_server_port = 8085
http_server_port = {{ item.ansible_facts.toragent_params.http_server_port }}

[DISCOVERY]
#If DEFAULT.collectors and/or CONTROL-NODE and/or DNS is not specified this
#section is mandatory. Else this section is optional

# IP address of discovery server
server = {{ contrail_haproxy_address }}

# Number of control-nodes info to be provided by Discovery service. Possible
# values are 1 and 2
# max_control_nodes = 1

[DNS]
# IP address to be used to connect to dns-node. Maximum of 2 IP addresses
# (separated by a space) can be provided. If no IP is configured then the
# value provided by discovery service will be used. (Optional)
# server = 10.0.0.1 10.0.0.2

[NETWORKS]
# control-channel IP address used by WEB-UI to connect to vnswad to fetch
# required information (Optional)
control_network_ip = {{ contrail_haproxy_address }}

[TOR]
# IP address of the TOR to manage
tor_ip = {{ item.ansible_facts.toragent_params.address }}

# Identifier for ToR. Agent will subscribe to ifmap-configuration by this name
tor_id = {{ item.ansible_facts.toragent_index }}

# ToR management scheme is based on this type. Only supported value is "ovs"
tor_type = ovs

# OVS server port number on the ToR
tor_ovs_port = {{ item.ansible_facts.toragent_params.ovs_port }}

# IP-Transport protocol used to connect to tor. Supported values are "tcp", "pssl"
tor_ovs_protocol = {{ item.ansible_facts.toragent_params.ovs_protocol }}

# Path to ssl certificate for tor-agent, needed for pssl
ssl_cert = /etc/contrail/ssl/certs/tor.{{ item.ansible_facts.toragent_index }}.cert.pem

# Path to ssl private-key for tor-agent, needed for pssl
ssl_privkey = /etc/contrail/ssl/private/tor.{{ item.ansible_facts.toragent_index }}.privkey.pem

# Path to ssl cacert for tor-agent, needed for pssl
ssl_cacert = /etc/contrail/ssl/certs/cacert.pem

tsn_ip = {{ contrail_address }}

# OVS keep alive timer interval in milliseconds
tor_keepalive_interval = 10000