fuel-plugin-contrail/deployment_scripts/puppet/modules/contrail/templates/contrail-tor-agent.conf.erb
Przemysław Szypowicz d3aa49b24f Add TSN HA support
Change-Id: I9835f06d74346c6c8762bbdccb6aea2170481bef
2016-09-13 13:22:33 +02:00

117 lines
3.6 KiB
Plaintext

#
# 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=<%= @fqdn -%>-<%= @tor_id %>
# 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-<%= @tor_id -%>.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=<%= @tor_id +8084 %>
[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_discovery_server %>
# 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_dev_ip %>
[TOR]
# IP address of the TOR to manage
tor_ip=<%= @tor_mgmt_ip %>
# Identifier for ToR. Agent will subscribe to ifmap-configuration by this name
tor_id=<%= @tor_id %>
# 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=<%=@ovs_port%>
# IP-Transport protocol used to connect to tor. Supported values are "tcp", "pssl"
tor_ovs_protocol=<%=@ovs_protocol%>
<% if @ovs_protocol == 'pssl' -%>
# Path to ssl certificate for tor-agent, needed for pssl
ssl_cert= /var/lib/astute/tsn_certificates/certs/tor_agent_<%= @tor_id -%>/tor_agent_<%= @tor_id -%>-cert.pem
# Path to ssl private-key for tor-agent, needed for pssl
ssl_privkey=/var/lib/astute/tsn_certificates/certs/tor_agent_<%= @tor_id -%>/tor_agent_<%= @tor_id -%>-privkey.pem
# Path to ssl cacert for tor-agent, needed for pssl
ssl_cacert=/var/lib/astute/tsn_certificates/cacert.pem
<% end -%>
tsn_ip=<%= @tsn_vip_ip %>
# OVS keep alive timer interval in milliseconds
tor_keepalive_interval=10000