Merge "Neutron LBaaS: Use generated configuration files if available"
This commit is contained in:
commit
c81fb98814
@ -112,6 +112,9 @@ NEUTRON_CONF_DIR=/etc/neutron
|
|||||||
NEUTRON_CONF=$NEUTRON_CONF_DIR/neutron.conf
|
NEUTRON_CONF=$NEUTRON_CONF_DIR/neutron.conf
|
||||||
export NEUTRON_TEST_CONFIG_FILE=${NEUTRON_TEST_CONFIG_FILE:-"$NEUTRON_CONF_DIR/debug.ini"}
|
export NEUTRON_TEST_CONFIG_FILE=${NEUTRON_TEST_CONFIG_FILE:-"$NEUTRON_CONF_DIR/debug.ini"}
|
||||||
|
|
||||||
|
# Default provider for load balancer service
|
||||||
|
DEFAULT_LB_PROVIDER=LOADBALANCER:Haproxy:neutron_lbaas.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
|
||||||
|
|
||||||
# Agent binaries. Note, binary paths for other agents are set in per-service
|
# Agent binaries. Note, binary paths for other agents are set in per-service
|
||||||
# scripts in lib/neutron_plugins/services/
|
# scripts in lib/neutron_plugins/services/
|
||||||
AGENT_DHCP_BINARY="$NEUTRON_BIN_DIR/neutron-dhcp-agent"
|
AGENT_DHCP_BINARY="$NEUTRON_BIN_DIR/neutron-dhcp-agent"
|
||||||
@ -1058,8 +1061,12 @@ function _configure_neutron_ceilometer_notifications {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _configure_neutron_lbaas {
|
function _configure_neutron_lbaas {
|
||||||
if [ -f $NEUTRON_LBAAS_DIR/etc/neutron_lbaas.conf ]; then
|
# Uses oslo config generator to generate LBaaS sample configuration files
|
||||||
cp $NEUTRON_LBAAS_DIR/etc/neutron_lbaas.conf $NEUTRON_CONF_DIR
|
(cd $NEUTRON_LBAAS_DIR && exec ./tools/generate_config_file_samples.sh)
|
||||||
|
|
||||||
|
if [ -f $NEUTRON_LBAAS_DIR/etc/neutron_lbaas.conf.sample ]; then
|
||||||
|
cp $NEUTRON_LBAAS_DIR/etc/neutron_lbaas.conf.sample $NEUTRON_CONF_DIR/neutron_lbaas.conf
|
||||||
|
iniset $NEUTRON_CONF_DIR/neutron_lbaas.conf service_providers service_provider $DEFAULT_LB_PROVIDER
|
||||||
fi
|
fi
|
||||||
neutron_agent_lbaas_configure_common
|
neutron_agent_lbaas_configure_common
|
||||||
neutron_agent_lbaas_configure_agent
|
neutron_agent_lbaas_configure_agent
|
||||||
|
@ -28,7 +28,7 @@ function neutron_agent_lbaas_configure_agent {
|
|||||||
|
|
||||||
LBAAS_AGENT_CONF_FILENAME="$LBAAS_AGENT_CONF_PATH/lbaas_agent.ini"
|
LBAAS_AGENT_CONF_FILENAME="$LBAAS_AGENT_CONF_PATH/lbaas_agent.ini"
|
||||||
|
|
||||||
cp $NEUTRON_LBAAS_DIR/etc/lbaas_agent.ini $LBAAS_AGENT_CONF_FILENAME
|
cp $NEUTRON_LBAAS_DIR/etc/lbaas_agent.ini.sample $LBAAS_AGENT_CONF_FILENAME
|
||||||
|
|
||||||
# ovs_use_veth needs to be set before the plugin configuration
|
# ovs_use_veth needs to be set before the plugin configuration
|
||||||
# occurs to allow plugins to override the setting.
|
# occurs to allow plugins to override the setting.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user