diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-02 09:39:00 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-03 01:16:44 -0400 |
| commit | 073282167ecd554a38cdb738780bbab5c2770738 (patch) | |
| tree | dd7997fd2a20ef5279dba2b767c257409575acab /meta-openstack | |
| parent | 793fbb775b5ec344434031647be2b5befe3159c8 (diff) | |
| download | meta-cloud-services-073282167ecd554a38cdb738780bbab5c2770738.tar.gz | |
quantum: configuration and packaging updates
For proper operation of quantum in both a control and compute node, the
following items are required:
- The controller IP set to the rabbit_host
-
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb index 1c8b96f..70094f1 100644 --- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb +++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb | |||
| @@ -34,10 +34,14 @@ do_install_append() { | |||
| 34 | sed -e "s:^# core_plugin.*:core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2:g" \ | 34 | sed -e "s:^# core_plugin.*:core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2:g" \ |
| 35 | -i ${WORKDIR}/quantum.conf | 35 | -i ${WORKDIR}/quantum.conf |
| 36 | 36 | ||
| 37 | echo "rabbit_host = ${CONTROLLER_EXTERNAL_IP}" >> ${WORKDIR}/quantum.conf | ||
| 38 | |||
| 37 | for file in ovs_quantum_plugin.ini linuxbridge_conf.ini | 39 | for file in ovs_quantum_plugin.ini linuxbridge_conf.ini |
| 38 | do | 40 | do |
| 39 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/${file} | 41 | sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/${file} |
| 40 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/${file} | 42 | sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/${file} |
| 43 | sed -e "s:%CONTROLLER_IP%:${CONTROLLER_IP}:g" -i ${WORKDIR}/${file} | ||
| 44 | sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${WORKDIR}/${file} | ||
| 41 | done | 45 | done |
| 42 | 46 | ||
| 43 | install -d ${QUANTUM_CONF_DIR} | 47 | install -d ${QUANTUM_CONF_DIR} |
| @@ -50,6 +54,8 @@ do_install_append() { | |||
| 50 | install -m 600 ${S}/etc/api-paste.ini ${QUANTUM_CONF_DIR}/ | 54 | install -m 600 ${S}/etc/api-paste.ini ${QUANTUM_CONF_DIR}/ |
| 51 | install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/ | 55 | install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/ |
| 52 | 56 | ||
| 57 | install -d ${D}${localstatedir}/log/${SRCNAME} | ||
| 58 | |||
| 53 | PLUGIN=openvswitch | 59 | PLUGIN=openvswitch |
| 54 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 60 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 55 | install -d ${D}${sysconfdir}/init.d | 61 | install -d ${D}${sysconfdir}/init.d |
| @@ -106,7 +112,9 @@ FILES_${SRCNAME} = " \ | |||
| 106 | ${bindir}/quantum-debug \ | 112 | ${bindir}/quantum-debug \ |
| 107 | ${bindir}/quantum-netns-cleanup \ | 113 | ${bindir}/quantum-netns-cleanup \ |
| 108 | ${bindir}/quantum-ovs-cleanup \ | 114 | ${bindir}/quantum-ovs-cleanup \ |
| 109 | ${sysconfdir}/${SRCNAME}/* " | 115 | ${sysconfdir}/${SRCNAME}/* \ |
| 116 | ${localstatedir}/* \ | ||
| 117 | " | ||
| 110 | 118 | ||
| 111 | FILES_${SRCNAME}-server = "${bindir}/quantum-server \ | 119 | FILES_${SRCNAME}-server = "${bindir}/quantum-server \ |
| 112 | ${sysconfdir}/init.d/quantum-server \ | 120 | ${sysconfdir}/init.d/quantum-server \ |
| @@ -125,6 +133,7 @@ FILES_${SRCNAME}-plugin-linuxbridge = " \ | |||
| 125 | " | 133 | " |
| 126 | 134 | ||
| 127 | FILES_${SRCNAME}-dhcp-agent = "${bindir}/quantum-dhcp-agent \ | 135 | FILES_${SRCNAME}-dhcp-agent = "${bindir}/quantum-dhcp-agent \ |
| 136 | ${bindir}/quantum-dhcp-agent-dnsmasq-lease-update \ | ||
| 128 | ${sysconfdir}/${SRCNAME}/dhcp_agent.ini \ | 137 | ${sysconfdir}/${SRCNAME}/dhcp_agent.ini \ |
| 129 | ${sysconfdir}/init.d/dhcp_agent \ | 138 | ${sysconfdir}/init.d/dhcp_agent \ |
| 130 | " | 139 | " |
