cookbook-openstack-network/templates/default/services/neutron-lbaas/lbaas_agent.ini.erb

49 lines
1.9 KiB
Plaintext

<%= node["openstack"]["network"]["custom_template_banner"] %>
[DEFAULT]
# Show debugging output in log (sets DEBUG log level output)
debug = <%= node["openstack"]["network"]["debug"] %>
# The LBaaS agent will resync its state with Neutron to recover from any
# transient notification or rpc errors. The interval is number of
# seconds between attempts.
periodic_interval = <%= node["openstack"]["network"]["lbaas"]["periodic_interval"] %>
# LBaas requires an interface driver be set. Choose the one that best
# matches your plugin.
<% case node["openstack"]["network"]["lbaas_plugin"]
when "ovs" %>
# OVS based plugins(OVS, Ryu, NEC, NVP, BigSwitch/Floodlight)
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
# Use veth for an OVS interface or not.
# Support kernels with limited namespace support
# (e.g. RHEL 6.5) so long as ovs_use_veth is set to True.
ovs_use_veth = <%= node['openstack']['network']['lbaas']['ovs_use_veth'] %>
<% when "linuxbridge" %>
# LinuxBridge
interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
<% else %>
# LBaaS currently supports openvswitch and linuxbridge drivers only.
# Custom driver can be set here if not using openvswitch or linuxbridge.
interface_driver = <%= node['openstack']['network']['lbaas']['custom_interface_driver'] %>
<% end %>
# The agent requires drivers to manage the loadbalancer. HAProxy is the opensource version.
# Multiple device drivers reflecting different service providers could be specified:
device_driver = <%= node['openstack']['network']['lbaas']['device_driver'] %>
[haproxy]
# Location to store config and state files
# loadbalancer_state_path = $state_path/lbaas
# The user group
<% if node['platform_family'] == 'debian' %>
user_group = nogroup
<% else %>
user_group = nobody
<% end %>
# When delete and re-add the same vip, send this many gratuitous ARPs to flush
# the ARP cache in the Router. Set it below or equal to 0 to disable this feature.
# send_gratuitous_arp = 3