Sam Yaple d1f2ec8c8a Properly use all configs with neutron
Change-Id: Ie347964d42e7060c69047b1aeece1cf0ad311ae6
Partially-Implements: blueprint ansible-service
2015-07-23 15:22:01 +00:00

14 lines
366 B
Bash
Executable File

#!/bin/bash
SOURCES="/opt/kolla/neutron-agents/neutron.conf /opt/kolla/neutron-agents/dhcp_agent.ini /opt/kolla/neutron-agents/dnsmasq.conf"
TARGET="/etc/neutron/"
OWNER="neutron"
for f in $SOURCES; do
if [[ -f "$f" ]]; then
fname=$(basename $f)
cp $f $TARGET
chown ${OWNER}: $TARGET/$fname
chmod 0644 $TARGET/$fname
fi
done