
Allows the user to configure neutron_plugin_agent value for Ansible. Current allowed values are openvswitch and linuxbridge. Implements: blueprint ansible-neutron-linuxbridge Change-Id: I0572464a5459d2f9da09b6da22db16e240511f99
21 lines
457 B
Bash
Executable File
21 lines
457 B
Bash
Executable File
#!/bin/bash
|
|
SOURCE="/opt/kolla/neutron-linuxbridge-agent/neutron.conf"
|
|
TARGET="/etc/neutron/neutron.conf"
|
|
OWNER="neutron"
|
|
|
|
if [[ -f "$SOURCE" ]]; then
|
|
cp $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0644 $TARGET
|
|
fi
|
|
|
|
SOURCE="/opt/kolla/neutron-linuxbridge-agent/ml2_conf.ini"
|
|
TARGET="/etc/neutron/plugins/ml2/ml2_conf.ini"
|
|
OWNER="neutron"
|
|
|
|
if [[ -f "$SOURCE" ]]; then
|
|
cp $SOURCE $TARGET
|
|
chown ${OWNER}: $TARGET
|
|
chmod 0644 $TARGET
|
|
fi
|