diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb index 568afc2..357cbae 100644 --- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb +++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb | |||
| @@ -8,7 +8,6 @@ PR = "r0" | |||
| 8 | SRCNAME = "quantum" | 8 | SRCNAME = "quantum" |
| 9 | 9 | ||
| 10 | SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ | 10 | SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ |
| 11 | file://quantum.conf \ | ||
| 12 | file://ovs_quantum_plugin.ini \ | 11 | file://ovs_quantum_plugin.ini \ |
| 13 | file://linuxbridge_conf.ini \ | 12 | file://linuxbridge_conf.ini \ |
| 14 | file://quantum-server.init \ | 13 | file://quantum-server.init \ |
| @@ -21,12 +20,20 @@ SRC_URI[sha256sum] = "08752d58fc010332c527974ddff0475378f6104e77de40b0a690580f67 | |||
| 21 | 20 | ||
| 22 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 21 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 23 | 22 | ||
| 24 | inherit setuptools update-rc.d | 23 | inherit setuptools update-rc.d identity |
| 25 | 24 | ||
| 26 | do_install_append() { | 25 | do_install_append() { |
| 27 | 26 | TEMPLATE_CONF_DIR=${S}${sysconfdir}/ | |
| 28 | QUANTUM_CONF_DIR=${D}${sysconfdir}/quantum | 27 | QUANTUM_CONF_DIR=${D}${sysconfdir}/quantum |
| 29 | 28 | ||
| 29 | sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ | ||
| 30 | ${TEMPLATE_CONF_DIR}/quantum.conf > ${WORKDIR}/quantum.conf | ||
| 31 | sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/quantum.conf | ||
| 32 | sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ | ||
| 33 | -i ${WORKDIR}/quantum.conf | ||
| 34 | sed -e "s:^# core_plugin.*:core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2:g" \ | ||
| 35 | -i ${WORKDIR}/quantum.conf | ||
| 36 | |||
| 30 | install -d ${QUANTUM_CONF_DIR} | 37 | install -d ${QUANTUM_CONF_DIR} |
| 31 | install -d ${QUANTUM_CONF_DIR}/plugins/openvswitch | 38 | install -d ${QUANTUM_CONF_DIR}/plugins/openvswitch |
| 32 | install -d ${QUANTUM_CONF_DIR}/plugins/linuxbridge | 39 | install -d ${QUANTUM_CONF_DIR}/plugins/linuxbridge |
| @@ -38,7 +45,6 @@ do_install_append() { | |||
| 38 | install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/ | 45 | install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/ |
| 39 | 46 | ||
| 40 | PLUGIN=openvswitch | 47 | PLUGIN=openvswitch |
| 41 | |||
| 42 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 48 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 43 | install -d ${D}${sysconfdir}/init.d | 49 | install -d ${D}${sysconfdir}/init.d |
| 44 | sed "s:@plugin@:/etc/quantum/plugins/$PLUGIN/ovs_quantum_plugin.ini:" \ | 50 | sed "s:@plugin@:/etc/quantum/plugins/$PLUGIN/ovs_quantum_plugin.ini:" \ |
| @@ -63,7 +69,6 @@ pkg_postinst_${SRCNAME} () { | |||
| 63 | fi | 69 | fi |
| 64 | 70 | ||
| 65 | sudo -u postgres createdb quantum | 71 | sudo -u postgres createdb quantum |
| 66 | |||
| 67 | } | 72 | } |
| 68 | 73 | ||
| 69 | PACKAGES += " \ | 74 | PACKAGES += " \ |
