diskimage-builder/elements/quantum/install.d/76-quantum
Tim Miller 7e36570519 Add a quantum element.
Change-Id: I1008dcbb4e0a6c4cc25f4cc11a90fbc265ab2fdd
2013-04-02 19:29:07 -07:00

17 lines
736 B
Bash
Executable File

#!/bin/bash
set -eux
install-packages openvswitch-switch
os-svc-install -n quantum -u quantum -r https://github.com/openstack/quantum.git
mkdir -p /var/lib/quantum && chown -R quantum:quantum /var/lib/quantum
os-svc-daemon quantum-openvswitch-agent quantum quantum-openvswitch-agent \
"--config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini --config-dir /etc/quantum"
os-svc-daemon quantum-server quantum quantum-server \
"--config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini --config-dir /etc/quantum"
echo "quantum ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/quantum
chmod 0440 /etc/sudoers.d/quantum
visudo -c