24b824b15c
This patch adds tasks to deploy the LBaaS v2 agent along with its related service and configuration files. Deployers can move between LBaaS v1 and v2 at any time. The tasks will ensure that the correct agent is running based on the deployer's neutron_plugins_base variable. Both agents could possibly run simultaneously for a short period of time, but that will be cleaned up by the tasks in neutron_lbaas.yml. This is a re-work of the changes proposed for OSA in change I1c9c43582c99ebd1fb7bacb6545bcad34a692880. Co-Authored-By: Bjoern Teipel <bjoern.teipel@rackspace.com> Closes-bug: 1541130 Change-Id: I00b41634816a1f7f1dfb31fcc6f35050c8d223a4
46 lines
1.7 KiB
Django/Jinja
46 lines
1.7 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[DEFAULT]
|
|
# Show debugging output in log (sets DEBUG log level output).
|
|
verbose = {{ verbose | bool }}
|
|
debug = {{ debug | bool }}
|
|
|
|
# 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 = 10
|
|
|
|
# LBaas requires an interface driver be set. Choose the one that best
|
|
# matches your plugin.
|
|
# Examples:
|
|
# interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
|
|
# interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
|
|
interface_driver = {{ neutron_driver_interface }}
|
|
|
|
# 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 = False
|
|
|
|
# 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 = path.to.provider1.driver.Driver
|
|
# device_driver = path.to.provider2.driver.Driver
|
|
# Default is:
|
|
{% if neutron_lbaas | bool %}
|
|
device_driver = neutron_lbaas.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
|
|
{% elif neutron_lbaasv2 | bool %}
|
|
device_driver = neutron_lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver
|
|
{% endif %}
|
|
|
|
[haproxy]
|
|
# Location to store config and state files
|
|
# loadbalancer_state_path = $state_path/lbaas
|
|
|
|
# The user group
|
|
user_group = nogroup
|
|
|
|
# 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
|