Merge "Neutron VPNaaS: Use generated configuration files if available"
This commit is contained in:
commit
f3913f7b89
@ -1086,8 +1086,10 @@ function _configure_neutron_fwaas {
|
||||
}
|
||||
|
||||
function _configure_neutron_vpn {
|
||||
if [ -f $NEUTRON_VPNAAS_DIR/etc/neutron_vpnaas.conf ]; then
|
||||
cp $NEUTRON_VPNAAS_DIR/etc/neutron_vpnaas.conf $NEUTRON_CONF_DIR
|
||||
# Uses oslo config generator to generate VPNaaS sample configuration files
|
||||
(cd $NEUTRON_VPNAAS_DIR && exec ./tools/generate_config_file_samples.sh)
|
||||
if [ -f $NEUTRON_VPNAAS_DIR/etc/neutron_vpnaas.conf.sample ]; then
|
||||
cp $NEUTRON_VPNAAS_DIR/etc/neutron_vpnaas.conf.sample $NEUTRON_CONF_DIR/neutron_vpnaas.conf
|
||||
fi
|
||||
neutron_vpn_install_agent_packages
|
||||
neutron_vpn_configure_common
|
||||
|
@ -29,7 +29,9 @@ function neutron_vpn_configure_common {
|
||||
}
|
||||
|
||||
function neutron_vpn_configure_agent {
|
||||
cp $NEUTRON_VPNAAS_DIR/etc/vpn_agent.ini $Q_VPN_CONF_FILE
|
||||
# Uses oslo config generator to generate LBaaS sample configuration files
|
||||
(cd $NEUTRON_VPNAAS_DIR && exec ./tools/generate_config_file_samples.sh)
|
||||
cp $NEUTRON_VPNAAS_DIR/etc/vpn_agent.ini.sample $Q_VPN_CONF_FILE
|
||||
if [[ "$IPSEC_PACKAGE" == "strongswan" ]]; then
|
||||
iniset_multiline $Q_VPN_CONF_FILE vpnagent vpn_device_driver neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec.StrongSwanDriver
|
||||
if is_fedora; then
|
||||
|
Loading…
Reference in New Issue
Block a user