From d0d32a8d2a642910e54a6b4f8c0fb9be9aa14dcf Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 13 Aug 2013 13:39:11 -0400 Subject: openstack: update to 2013.1.3 release Updating cinder/glanc/swift/horizon/nova/keystone/quantum to the 2013.1.3 bugfix release. Signed-off-by: Bruce Ashfield --- .../python/python-cinder_2013.1.1.bb | 124 -------------- .../python/python-cinder_2013.1.3.bb | 124 ++++++++++++++ .../python/python-glance_2013.1.3.bb | 124 ++++++++++++++ .../python/python-glance_2013.1.bb | 124 -------------- .../python/python-horizon_2013.1.2.bb | 86 ---------- .../python/python-horizon_2013.1.3.bb | 86 ++++++++++ .../python/python-keystone_2013.1.3.bb | 103 ++++++++++++ .../python/python-keystone_2013.1.bb | 103 ------------ .../python/python-nova_2013.1.3.bb | 173 +++++++++++++++++++ .../recipes-devtools/python/python-nova_2013.1.bb | 174 -------------------- .../python/python-quantum_2013.1.2.bb | 183 --------------------- .../python/python-quantum_2013.1.3.bb | 183 +++++++++++++++++++++ 12 files changed, 793 insertions(+), 794 deletions(-) delete mode 100644 meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb create mode 100644 meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb create mode 100644 meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb delete mode 100644 meta-openstack/recipes-devtools/python/python-glance_2013.1.bb delete mode 100644 meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb create mode 100644 meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb create mode 100644 meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb delete mode 100644 meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb create mode 100644 meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb delete mode 100644 meta-openstack/recipes-devtools/python/python-nova_2013.1.bb delete mode 100644 meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb create mode 100644 meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb deleted file mode 100644 index a71e2ae..0000000 --- a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.1.bb +++ /dev/null @@ -1,124 +0,0 @@ -DESCRIPTION = "OpenStack Block storage service" -HOMEPAGE = "https://launchpad.net/cinder" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -PR = "r0" -SRCNAME = "cinder" - -SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ - file://cinder.conf \ - file://cinder.init \ - file://cinder-volume \ - " - -SRC_URI[md5sum] = "8fbfbd8aad5f1a6d5e2a239b7801966d" -SRC_URI[sha256sum] = "c4d7f508f404b555242abc638901a39b02d4345c2d101a0aaad52fec1143ec2a" - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools update-rc.d identity - -do_install_append() { - TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} - CINDER_CONF_DIR=${D}${sysconfdir}/${SRCNAME} - - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ - ${TEMPLATE_CONF_DIR}/api-paste.ini > ${WORKDIR}/api-paste.ini - sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/api-paste.ini - sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ - -i ${WORKDIR}/api-paste.ini - - sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/cinder.conf - sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/cinder.conf - - install -d ${CINDER_CONF_DIR} - install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/ - install -m 600 ${WORKDIR}/api-paste.ini ${CINDER_CONF_DIR}/ - install -m 600 ${S}/etc/cinder/policy.json ${CINDER_CONF_DIR}/ - - if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/init.d - sed 's:@suffix@:api:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-api.init.sh - install -m 0755 ${WORKDIR}/cinder-api.init.sh ${D}${sysconfdir}/init.d/cinder-api - sed 's:@suffix@:scheduler:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-scheduler.init.sh - install -m 0755 ${WORKDIR}/cinder-scheduler.init.sh ${D}${sysconfdir}/init.d/cinder-scheduler - install -m 0755 ${WORKDIR}/cinder-volume ${D}${sysconfdir}/init.d/cinder-volume - fi -} - -pkg_postinst_${SRCNAME} () { - if [ "x$D" != "x" ]; then - exit 1 - fi - - # This is to make sure postgres is configured and running - if ! pidof postmaster > /dev/null; then - sudo -u postgres initdb -D /etc/postgresql/ - /etc/init.d/postgresql start - sleep 0.2 - sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" - fi - - sudo -u postgres createdb cinder - cinder-manage db sync - - #Create cinder volume group backing file - [[ -f /etc/cinder/volumes-backing ]] || truncate -s 2G /etc/cinder/volumes-backing - echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf -} - -PACKAGES += "${SRCNAME} ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" - -FILES_${PN} = "${libdir}/*" - -FILES_${SRCNAME}-api = "${bindir}/cinder-api \ - ${sysconfdir}/init.d/cinder-api" - -FILES_${SRCNAME}-volume = "${bindir}/cinder-volume \ - ${sysconfdir}/init.d/cinder-volume" - -FILES_${SRCNAME}-scheduler = "${bindir}/cinder-scheduler \ - ${sysconfdir}/init.d/cinder-scheduler" - -FILES_${SRCNAME} = "${bindir}/* \ - ${sysconfdir}/${SRCNAME}/* " - -RDEPENDS_${PN} += "lvm2 \ - python-sqlalchemy \ - python-amqplib \ - python-anyjson \ - python-eventlet \ - python-kombu \ - python-lxml \ - python-routes \ - python-webob \ - python-greenlet \ - python-lockfile \ - python-pastedeploy \ - python-paste \ - python-sqlalchemy-migrate \ - python-stevedore \ - python-suds \ - python-paramiko \ - python-babel \ - python-iso8601 \ - python-setuptools-git \ - python-glanceclient \ - python-keystoneclient \ - python-swiftclient \ - python-oslo.config \ - " - -RDEPENDS_${SRCNAME} = "${PN} \ - postgresql postgresql-client python-psycopg2 tgt" - -RDEPENDS_${SRCNAME}-api = "${SRCNAME}" -RDEPENDS_${SRCNAME}-volume = "${SRCNAME}" -RDEPENDS_${SRCNAME}-scheduler = "${SRCNAME}" - -INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" -INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api" -INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume" -INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler" diff --git a/meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb new file mode 100644 index 0000000..481eb21 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder_2013.1.3.bb @@ -0,0 +1,124 @@ +DESCRIPTION = "OpenStack Block storage service" +HOMEPAGE = "https://launchpad.net/cinder" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +PR = "r0" +SRCNAME = "cinder" + +SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ + file://cinder.conf \ + file://cinder.init \ + file://cinder-volume \ + " + +SRC_URI[md5sum] = "2bfeacfaea7be5194587bb932dd8f693" +SRC_URI[sha256sum] = "358ab7fb1cb57ea1f0c1d76e30d45eebb6308a6122b6e6ff6ac3405f51eceb1e" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools update-rc.d identity + +do_install_append() { + TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} + CINDER_CONF_DIR=${D}${sysconfdir}/${SRCNAME} + + sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ + ${TEMPLATE_CONF_DIR}/api-paste.ini > ${WORKDIR}/api-paste.ini + sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/api-paste.ini + sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ + -i ${WORKDIR}/api-paste.ini + + sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/cinder.conf + sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/cinder.conf + + install -d ${CINDER_CONF_DIR} + install -m 600 ${WORKDIR}/cinder.conf ${CINDER_CONF_DIR}/ + install -m 600 ${WORKDIR}/api-paste.ini ${CINDER_CONF_DIR}/ + install -m 600 ${S}/etc/cinder/policy.json ${CINDER_CONF_DIR}/ + + if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/init.d + sed 's:@suffix@:api:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-api.init.sh + install -m 0755 ${WORKDIR}/cinder-api.init.sh ${D}${sysconfdir}/init.d/cinder-api + sed 's:@suffix@:scheduler:' < ${WORKDIR}/cinder.init >${WORKDIR}/cinder-scheduler.init.sh + install -m 0755 ${WORKDIR}/cinder-scheduler.init.sh ${D}${sysconfdir}/init.d/cinder-scheduler + install -m 0755 ${WORKDIR}/cinder-volume ${D}${sysconfdir}/init.d/cinder-volume + fi +} + +pkg_postinst_${SRCNAME} () { + if [ "x$D" != "x" ]; then + exit 1 + fi + + # This is to make sure postgres is configured and running + if ! pidof postmaster > /dev/null; then + sudo -u postgres initdb -D /etc/postgresql/ + /etc/init.d/postgresql start + sleep 0.2 + sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" + fi + + sudo -u postgres createdb cinder + cinder-manage db sync + + #Create cinder volume group backing file + [[ -f /etc/cinder/volumes-backing ]] || truncate -s 2G /etc/cinder/volumes-backing + echo "include /etc/cinder/data/volumes/*" >> /etc/tgt/targets.conf +} + +PACKAGES += "${SRCNAME} ${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" + +FILES_${PN} = "${libdir}/*" + +FILES_${SRCNAME}-api = "${bindir}/cinder-api \ + ${sysconfdir}/init.d/cinder-api" + +FILES_${SRCNAME}-volume = "${bindir}/cinder-volume \ + ${sysconfdir}/init.d/cinder-volume" + +FILES_${SRCNAME}-scheduler = "${bindir}/cinder-scheduler \ + ${sysconfdir}/init.d/cinder-scheduler" + +FILES_${SRCNAME} = "${bindir}/* \ + ${sysconfdir}/${SRCNAME}/* " + +RDEPENDS_${PN} += "lvm2 \ + python-sqlalchemy \ + python-amqplib \ + python-anyjson \ + python-eventlet \ + python-kombu \ + python-lxml \ + python-routes \ + python-webob \ + python-greenlet \ + python-lockfile \ + python-pastedeploy \ + python-paste \ + python-sqlalchemy-migrate \ + python-stevedore \ + python-suds \ + python-paramiko \ + python-babel \ + python-iso8601 \ + python-setuptools-git \ + python-glanceclient \ + python-keystoneclient \ + python-swiftclient \ + python-oslo.config \ + " + +RDEPENDS_${SRCNAME} = "${PN} \ + postgresql postgresql-client python-psycopg2 tgt" + +RDEPENDS_${SRCNAME}-api = "${SRCNAME}" +RDEPENDS_${SRCNAME}-volume = "${SRCNAME}" +RDEPENDS_${SRCNAME}-scheduler = "${SRCNAME}" + +INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-volume ${SRCNAME}-scheduler" +INITSCRIPT_NAME_${SRCNAME}-api = "cinder-api" +INITSCRIPT_NAME_${SRCNAME}-volume = "cinder-volume" +INITSCRIPT_NAME_${SRCNAME}-scheduler = "cinder-scheduler" diff --git a/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb new file mode 100644 index 0000000..9bfd262 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-glance_2013.1.3.bb @@ -0,0 +1,124 @@ +DESCRIPTION = "Services for discovering, registering and retrieving virtual machine images" +HOMEPAGE = "http://glance.openstack.org/" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +PR = "r0" +SRCNAME = "glance" + +SRC_URI = "https://launchpad.net/glance/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ + file://glance.init \ + " + +SRC_URI[md5sum] = "f9ba3865ff2cf98caa471bd54173fecd" +SRC_URI[sha256sum] = "642782416d790dfcb6d5bb85626dd5d48784ba8f3a53e7863ec13312e86cb209" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools update-rc.d identity + +do_install_append() { + TEMPLATE_CONF_DIR=${S}${sysconfdir} + GLANCE_CONF_DIR=${D}${sysconfdir}/glance + + for file in api registry cache + do + sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ + ${TEMPLATE_CONF_DIR}/glance-$file.conf > ${WORKDIR}/glance-$file.conf + sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/glance-$file.conf + sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ + -i ${WORKDIR}/glance-$file.conf + sed -e "s#^sql_conn.*#sql_connection = postgresql://${DB_USER}:${DB_PASSWORD}@localhost/glance#g" \ + -i ${WORKDIR}/glance-$file.conf + done + sed -e "s:^filesystem_store_datadir =.*:filesystem_store_datadir = ${sysconfdir}/${SRCNAME}/images/:g" \ + -i ${WORKDIR}/glance-api.conf + + install -d ${GLANCE_CONF_DIR} + install -m 600 ${WORKDIR}/glance-registry.conf ${GLANCE_CONF_DIR}/ + install -m 600 ${WORKDIR}/glance-api.conf ${GLANCE_CONF_DIR}/ + install -m 600 ${WORKDIR}/glance-cache.conf ${GLANCE_CONF_DIR}/ + + install -m 600 ${S}/etc/glance-registry-paste.ini ${GLANCE_CONF_DIR}/ + install -m 600 ${S}/etc/glance-api-paste.ini ${GLANCE_CONF_DIR}/ + install -m 600 ${S}/etc/policy.json ${GLANCE_CONF_DIR}/ + + install -d ${GLANCE_CONF_DIR}/images + install -d ${D}${localstatedir}/lib/glance/image_cache + + install -d ${D}${localstatedir}/log/${SRCNAME} + + if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/init.d + sed 's:@suffix@:api:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-api.init.sh + install -m 0755 ${WORKDIR}/glance-api.init.sh ${D}${sysconfdir}/init.d/glance-api + sed 's:@suffix@:registry:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-registry.init.sh + install -m 0755 ${WORKDIR}/glance-registry.init.sh ${D}${sysconfdir}/init.d/glance-registry + fi +} + +pkg_postinst_${SRCNAME} () { + if [ "x$D" != "x" ]; then + exit 1 + fi + + # This is to make sure postgres is configured and running + if ! pidof postmaster > /dev/null; then + sudo -u postgres initdb -D /etc/postgresql/ + /etc/init.d/postgresql start + sleep 0.2 + sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" + fi + + mkdir /var/log/glance + sudo -u postgres createdb glance + glance-manage db_sync +} + +PACKAGES += " ${SRCNAME} ${SRCNAME}-api ${SRCNAME}-registry" + +FILES_${PN} = "${libdir}/*" + +FILES_${SRCNAME} = "${bindir}/* \ + ${sysconfdir}/${SRCNAME}/* \ + ${localstatedir}/* \ + " + +FILES_${SRCNAME}-api = "${bindir}/glance-api \ + ${sysconfdir}/init.d/glance-api \ + " + +FILES_${SRCNAME}-registry = "${bindir}/glance-registry \ + ${sysconfdir}/init.d/glance-registry \ + " + +RDEPENDS_${PN} += "python-greenlet \ + python-sqlalchemy \ + python-anyjson \ + python-eventlet \ + python-pastedeploy \ + python-routes \ + python-webob \ + python-boto \ + python-sqlalchemy-migrate \ + python-httplib2 \ + python-kombu \ + python-iso8601 \ + python-oslo.config \ + python-lxml \ + python-paste \ + python-pycrypto \ + python-jsonschema \ + python-keystoneclient \ + python-swiftclient \ + " + +RDEPENDS_${SRCNAME} = "${PN} \ + postgresql postgresql-client python-psycopg2" +RDEPENDS_${SRCNAME}-api = "${SRCNAME}" +RDEPENDS_${SRCNAME}-registry = "${SRCNAME}" + +INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" +INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" +INITSCRIPT_NAME_${SRCNAME}-registry = "glance-registry" diff --git a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb b/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb deleted file mode 100644 index 56997d8..0000000 --- a/meta-openstack/recipes-devtools/python/python-glance_2013.1.bb +++ /dev/null @@ -1,124 +0,0 @@ -DESCRIPTION = "Services for discovering, registering and retrieving virtual machine images" -HOMEPAGE = "http://glance.openstack.org/" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -PR = "r0" -SRCNAME = "glance" - -SRC_URI = "https://launchpad.net/glance/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ - file://glance.init \ - " - -SRC_URI[md5sum] = "cd813098ca807bed67440bb1646d0647" -SRC_URI[sha256sum] = "f4deee125ee6729daee5315c6aacd9e265c3015692a62ae6aefeadbd3fef7f70" - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools update-rc.d identity - -do_install_append() { - TEMPLATE_CONF_DIR=${S}${sysconfdir} - GLANCE_CONF_DIR=${D}${sysconfdir}/glance - - for file in api registry cache - do - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ - ${TEMPLATE_CONF_DIR}/glance-$file.conf > ${WORKDIR}/glance-$file.conf - sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/glance-$file.conf - sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ - -i ${WORKDIR}/glance-$file.conf - sed -e "s#^sql_conn.*#sql_connection = postgresql://${DB_USER}:${DB_PASSWORD}@localhost/glance#g" \ - -i ${WORKDIR}/glance-$file.conf - done - sed -e "s:^filesystem_store_datadir =.*:filesystem_store_datadir = ${sysconfdir}/${SRCNAME}/images/:g" \ - -i ${WORKDIR}/glance-api.conf - - install -d ${GLANCE_CONF_DIR} - install -m 600 ${WORKDIR}/glance-registry.conf ${GLANCE_CONF_DIR}/ - install -m 600 ${WORKDIR}/glance-api.conf ${GLANCE_CONF_DIR}/ - install -m 600 ${WORKDIR}/glance-cache.conf ${GLANCE_CONF_DIR}/ - - install -m 600 ${S}/etc/glance-registry-paste.ini ${GLANCE_CONF_DIR}/ - install -m 600 ${S}/etc/glance-api-paste.ini ${GLANCE_CONF_DIR}/ - install -m 600 ${S}/etc/policy.json ${GLANCE_CONF_DIR}/ - - install -d ${GLANCE_CONF_DIR}/images - install -d ${D}${localstatedir}/lib/glance/image_cache - - install -d ${D}${localstatedir}/log/${SRCNAME} - - if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/init.d - sed 's:@suffix@:api:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-api.init.sh - install -m 0755 ${WORKDIR}/glance-api.init.sh ${D}${sysconfdir}/init.d/glance-api - sed 's:@suffix@:registry:' < ${WORKDIR}/glance.init >${WORKDIR}/glance-registry.init.sh - install -m 0755 ${WORKDIR}/glance-registry.init.sh ${D}${sysconfdir}/init.d/glance-registry - fi -} - -pkg_postinst_${SRCNAME} () { - if [ "x$D" != "x" ]; then - exit 1 - fi - - # This is to make sure postgres is configured and running - if ! pidof postmaster > /dev/null; then - sudo -u postgres initdb -D /etc/postgresql/ - /etc/init.d/postgresql start - sleep 0.2 - sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" - fi - - mkdir /var/log/glance - sudo -u postgres createdb glance - glance-manage db_sync -} - -PACKAGES += " ${SRCNAME} ${SRCNAME}-api ${SRCNAME}-registry" - -FILES_${PN} = "${libdir}/*" - -FILES_${SRCNAME} = "${bindir}/* \ - ${sysconfdir}/${SRCNAME}/* \ - ${localstatedir}/* \ - " - -FILES_${SRCNAME}-api = "${bindir}/glance-api \ - ${sysconfdir}/init.d/glance-api \ - " - -FILES_${SRCNAME}-registry = "${bindir}/glance-registry \ - ${sysconfdir}/init.d/glance-registry \ - " - -RDEPENDS_${PN} += "python-greenlet \ - python-sqlalchemy \ - python-anyjson \ - python-eventlet \ - python-pastedeploy \ - python-routes \ - python-webob \ - python-boto \ - python-sqlalchemy-migrate \ - python-httplib2 \ - python-kombu \ - python-iso8601 \ - python-oslo.config \ - python-lxml \ - python-paste \ - python-pycrypto \ - python-jsonschema \ - python-keystoneclient \ - python-swiftclient \ - " - -RDEPENDS_${SRCNAME} = "${PN} \ - postgresql postgresql-client python-psycopg2" -RDEPENDS_${SRCNAME}-api = "${SRCNAME}" -RDEPENDS_${SRCNAME}-registry = "${SRCNAME}" - -INITSCRIPT_PACKAGES = "${SRCNAME}-api ${SRCNAME}-registry" -INITSCRIPT_NAME_${SRCNAME}-api = "glance-api" -INITSCRIPT_NAME_${SRCNAME}-registry = "glance-registry" diff --git a/meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb b/meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb deleted file mode 100644 index cdb5ae7..0000000 --- a/meta-openstack/recipes-devtools/python/python-horizon_2013.1.2.bb +++ /dev/null @@ -1,86 +0,0 @@ -DESCRIPTION = "The OpenStack Dashboard." -HOMEPAGE = "https://github.com/openstack/horizon/" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -DEPENDS_${PN} += "python-django \ - python-django-compressor \ - python-django-openstack-auth \ - python-netaddr \ - python-cinderclient \ - python-glanceclient \ - python-keystoneclient \ - python-novaclient \ - python-quantumclient \ - python-pytz \ - python-django-appconf \ - python-six \ - python-swiftclient \ - python-lockfile \ - " - -PR = "r0" -SRCNAME = "horizon" - -SRC_URI = "https://launchpad.net/horizon/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ - file://horizon.init \ - file://fix_bindir_path.patch \ - " - -SRC_URI[md5sum] = "23db8455f768c830485ef283c06f0e65" -SRC_URI[sha256sum] = "12a0b87ed4796595ba15ed7c8743cbab188bafc711ade9735b635c5eb65652e6" - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools update-rc.d python-dir - -do_install_append() { - DASHBOARD_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/openstack_dashboard - sed -e "s:^LANGUAGE_CODE =.*:LANGUAGE_CODE = 'en-us':g" \ - -i ${DASHBOARD_DIR}/settings.py - sed -e "s:^# from horizon.utils:from horizon.utils:g" \ - ${DASHBOARD_DIR}/local/local_settings.py.example > ${DASHBOARD_DIR}/local/local_settings.py - sed -e "s:^# SECRET_KEY =:SECRET_KEY =:g" \ - -i ${DASHBOARD_DIR}/local/local_settings.py - install -m 644 ${S}/manage.py ${DASHBOARD_DIR}/manage.py - - if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/init.d - sed 's:@PYTHON_SITEPACKAGES@:${PYTHON_SITEPACKAGES_DIR}:' ${WORKDIR}/horizon.init >${WORKDIR}/horizon - install -m 0755 ${WORKDIR}/horizon ${D}${sysconfdir}/init.d/horizon - fi - - mv ${D}${datadir}/bin ${DASHBOARD_DIR}/bin -} - -PACKAGES += "${SRCNAME}" - -FILES_${PN} = "${libdir}/*" - -FILES_${SRCNAME} = "${bindir}/* \ - ${sysconfdir}/init.d/* \ - ${datadir}/* \ - " - -RDEPENDS_${PN} += "nodejs \ - python-django \ - python-django-appconf \ - python-django-compressor \ - python-django-openstack-auth \ - python-netaddr \ - python-cinderclient \ - python-glanceclient \ - python-keystoneclient \ - python-novaclient \ - python-quantumclient \ - python-pytz \ - python-six \ - python-swiftclient \ - python-lockfile \ - " - -RDEPENDS_${SRCNAME} = "${PN}" - -INITSCRIPT_PACKAGES = "${SRCNAME}" -INITSCRIPT_NAME_${SRCNAME} = "horizon" diff --git a/meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb new file mode 100644 index 0000000..fdd0bd0 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-horizon_2013.1.3.bb @@ -0,0 +1,86 @@ +DESCRIPTION = "The OpenStack Dashboard." +HOMEPAGE = "https://github.com/openstack/horizon/" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +DEPENDS_${PN} += "python-django \ + python-django-compressor \ + python-django-openstack-auth \ + python-netaddr \ + python-cinderclient \ + python-glanceclient \ + python-keystoneclient \ + python-novaclient \ + python-quantumclient \ + python-pytz \ + python-django-appconf \ + python-six \ + python-swiftclient \ + python-lockfile \ + " + +PR = "r0" +SRCNAME = "horizon" + +SRC_URI = "https://launchpad.net/horizon/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ + file://horizon.init \ + file://fix_bindir_path.patch \ + " + +SRC_URI[md5sum] = "8edb861987dffe3017eada91d3009f0a" +SRC_URI[sha256sum] = "4dbf05e75313d9d6ac966de1d139f26647ab537a3d1f418a3e4424210b4c05fd" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools update-rc.d python-dir + +do_install_append() { + DASHBOARD_DIR=${D}${PYTHON_SITEPACKAGES_DIR}/openstack_dashboard + sed -e "s:^LANGUAGE_CODE =.*:LANGUAGE_CODE = 'en-us':g" \ + -i ${DASHBOARD_DIR}/settings.py + sed -e "s:^# from horizon.utils:from horizon.utils:g" \ + ${DASHBOARD_DIR}/local/local_settings.py.example > ${DASHBOARD_DIR}/local/local_settings.py + sed -e "s:^# SECRET_KEY =:SECRET_KEY =:g" \ + -i ${DASHBOARD_DIR}/local/local_settings.py + install -m 644 ${S}/manage.py ${DASHBOARD_DIR}/manage.py + + if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/init.d + sed 's:@PYTHON_SITEPACKAGES@:${PYTHON_SITEPACKAGES_DIR}:' ${WORKDIR}/horizon.init >${WORKDIR}/horizon + install -m 0755 ${WORKDIR}/horizon ${D}${sysconfdir}/init.d/horizon + fi + + mv ${D}${datadir}/bin ${DASHBOARD_DIR}/bin +} + +PACKAGES += "${SRCNAME}" + +FILES_${PN} = "${libdir}/*" + +FILES_${SRCNAME} = "${bindir}/* \ + ${sysconfdir}/init.d/* \ + ${datadir}/* \ + " + +RDEPENDS_${PN} += "nodejs \ + python-django \ + python-django-appconf \ + python-django-compressor \ + python-django-openstack-auth \ + python-netaddr \ + python-cinderclient \ + python-glanceclient \ + python-keystoneclient \ + python-novaclient \ + python-quantumclient \ + python-pytz \ + python-six \ + python-swiftclient \ + python-lockfile \ + " + +RDEPENDS_${SRCNAME} = "${PN}" + +INITSCRIPT_PACKAGES = "${SRCNAME}" +INITSCRIPT_NAME_${SRCNAME} = "horizon" diff --git a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb new file mode 100644 index 0000000..14bfc47 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.3.bb @@ -0,0 +1,103 @@ +DESCRIPTION = "Authentication service for OpenStack" +HOMEPAGE = "http://www.openstack.org" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +PR = "r0" +SRCNAME = "keystone" + +SRC_URI = "https://launchpad.net/keystone/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ + file://keystone.conf \ + file://identity.sh \ + file://keystone \ + file://openrc \ + " + +SRC_URI[md5sum] = "49bfcd088426960ef787d040ea8426af" +SRC_URI[sha256sum] = "e097170ebb1cf22de50f2d5ab2216a5116ffe0934720dbad8b02d61c370b8261" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools update-rc.d identity + +SERVICE_TOKEN = "password" + +do_install_append() { + + KEYSTONE_CONF_DIR=${D}${sysconfdir}/keystone + + install -d ${KEYSTONE_CONF_DIR} + + sed -e "s:%SERVICE_TOKEN%:${SERVICE_TOKEN}:g" -i ${WORKDIR}/keystone.conf + sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/keystone.conf + sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/keystone.conf + + install -m 600 ${WORKDIR}/keystone.conf ${KEYSTONE_CONF_DIR}/ + install -m 600 ${WORKDIR}/identity.sh ${KEYSTONE_CONF_DIR}/ + install -m 600 ${WORKDIR}/openrc ${KEYSTONE_CONF_DIR}/ + install -m 600 ${S}/etc/logging.conf.sample ${KEYSTONE_CONF_DIR}/logging.conf + install -m 600 ${S}/etc/policy.json ${KEYSTONE_CONF_DIR}/policy.json + + if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone + fi +} + +pkg_postinst_${SRCNAME} () { + + if [ "x$D" != "x" ]; then + exit 1 + fi + + # This is to make sure postgres is configured and running + if ! pidof postmaster > /dev/null; then + sudo -u postgres initdb -D /etc/postgresql/ + /etc/init.d/postgresql start + sleep 0.2 + sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" + fi + + sudo -u postgres createdb keystone + keystone-manage db_sync + keystone-manage pki_setup + + #Create users, services and endpoints + /etc/init.d/keystone start + sleep 0.25 + ADMIN_PASSWORD=${ADMIN_PASSWORD} \ + SERVICE_PASSWORD=${SERVICE_PASSWORD} \ + SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME} \ + bash /etc/keystone/identity.sh +} + +PACKAGES += " ${SRCNAME}" + +FILES_${PN} = "${libdir}/*" + +FILES_${SRCNAME} = "${bindir}/* \ + ${sysconfdir}/${SRCNAME}/* \ + ${sysconfdir}/init.d/* " + +RDEPENDS_${PN} += "python-pam \ + python-webob \ + python-eventlet \ + python-greenlet \ + python-pastedeploy \ + python-paste \ + python-routes \ + python-sqlalchemy \ + python-sqlalchemy-migrate \ + python-passlib \ + python-lxml \ + python-iso8601 \ + python-keystoneclient \ + python-oslo.config \ + " + +RDEPENDS_${SRCNAME} = "${PN} \ + postgresql postgresql-client python-psycopg2" + +INITSCRIPT_PACKAGES = "${SRCNAME}" +INITSCRIPT_NAME_${SRCNAME} = "keystone" diff --git a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb b/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb deleted file mode 100644 index d74700c..0000000 --- a/meta-openstack/recipes-devtools/python/python-keystone_2013.1.bb +++ /dev/null @@ -1,103 +0,0 @@ -DESCRIPTION = "Authentication service for OpenStack" -HOMEPAGE = "http://www.openstack.org" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -PR = "r0" -SRCNAME = "keystone" - -SRC_URI = "https://launchpad.net/keystone/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ - file://keystone.conf \ - file://identity.sh \ - file://keystone \ - file://openrc \ - " - -SRC_URI[md5sum] = "f82189cd7e3f0955e32c60e41f4120da" -SRC_URI[sha256sum] = "34347a3242a40d93b98c3722e6f3fbc112bc1c9ef20c045c3d40637e459b4574" - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools update-rc.d identity - -SERVICE_TOKEN = "password" - -do_install_append() { - - KEYSTONE_CONF_DIR=${D}${sysconfdir}/keystone - - install -d ${KEYSTONE_CONF_DIR} - - sed -e "s:%SERVICE_TOKEN%:${SERVICE_TOKEN}:g" -i ${WORKDIR}/keystone.conf - sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/keystone.conf - sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/keystone.conf - - install -m 600 ${WORKDIR}/keystone.conf ${KEYSTONE_CONF_DIR}/ - install -m 600 ${WORKDIR}/identity.sh ${KEYSTONE_CONF_DIR}/ - install -m 600 ${WORKDIR}/openrc ${KEYSTONE_CONF_DIR}/ - install -m 600 ${S}/etc/logging.conf.sample ${KEYSTONE_CONF_DIR}/logging.conf - install -m 600 ${S}/etc/policy.json ${KEYSTONE_CONF_DIR}/policy.json - - if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/keystone ${D}${sysconfdir}/init.d/keystone - fi -} - -pkg_postinst_${SRCNAME} () { - - if [ "x$D" != "x" ]; then - exit 1 - fi - - # This is to make sure postgres is configured and running - if ! pidof postmaster > /dev/null; then - sudo -u postgres initdb -D /etc/postgresql/ - /etc/init.d/postgresql start - sleep 0.2 - sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" - fi - - sudo -u postgres createdb keystone - keystone-manage db_sync - keystone-manage pki_setup - - #Create users, services and endpoints - /etc/init.d/keystone start - sleep 0.25 - ADMIN_PASSWORD=${ADMIN_PASSWORD} \ - SERVICE_PASSWORD=${SERVICE_PASSWORD} \ - SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME} \ - bash /etc/keystone/identity.sh -} - -PACKAGES += " ${SRCNAME}" - -FILES_${PN} = "${libdir}/*" - -FILES_${SRCNAME} = "${bindir}/* \ - ${sysconfdir}/${SRCNAME}/* \ - ${sysconfdir}/init.d/* " - -RDEPENDS_${PN} += "python-pam \ - python-webob \ - python-eventlet \ - python-greenlet \ - python-pastedeploy \ - python-paste \ - python-routes \ - python-sqlalchemy \ - python-sqlalchemy-migrate \ - python-passlib \ - python-lxml \ - python-iso8601 \ - python-keystoneclient \ - python-oslo.config \ - " - -RDEPENDS_${SRCNAME} = "${PN} \ - postgresql postgresql-client python-psycopg2" - -INITSCRIPT_PACKAGES = "${SRCNAME}" -INITSCRIPT_NAME_${SRCNAME} = "keystone" diff --git a/meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb new file mode 100644 index 0000000..95065fc --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-nova_2013.1.3.bb @@ -0,0 +1,173 @@ +DESCRIPTION = "Nova is a cloud computing fabric controller" +HOMEPAGE = "https://launchpad.net/nova" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +DEPENDS = "sudo" + +PR = "r0" +SRCNAME = "nova" + +SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ + file://nova.conf \ + file://nova-compute \ + file://nova-all \ + file://openrc \ + " +SRC_URI[md5sum] = "6215982b9ed08b9042e088470d60a0a6" +SRC_URI[sha256sum] = "f7c25186920daccb16867c5fd272318beb8cc076e5a55f79b5906618ef2724f4" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools useradd update-rc.d identity + +do_install_append() { + TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} + NOVA_CONF_DIR=${D}/${sysconfdir}/nova + + install -d ${NOVA_CONF_DIR} + install -m 600 ${S}/etc/nova/policy.json ${NOVA_CONF_DIR}/ + + # Deploy filters to /etc/nova/rootwrap.d + install -m 755 -d ${NOVA_CONF_DIR}/rootwrap.d + install -m 600 ${S}/etc/nova/rootwrap.d/*.filters ${NOVA_CONF_DIR}/rootwrap.d + chown -R root:root ${NOVA_CONF_DIR}/rootwrap.d + chmod 644 ${NOVA_CONF_DIR}/rootwrap.d + + # Set up rootwrap.conf, pointing to /etc/nova/rootwrap.d + install -m 644 ${S}/etc/nova/rootwrap.conf ${NOVA_CONF_DIR}/ + sed -e "s:^filters_path=.*$:filters_path=${NOVA_CONF_DIR}/rootwrap.d:" \ + -i ${NOVA_CONF_DIR}/rootwrap.conf + chown root:root $NOVA_CONF_DIR/rootwrap.conf + + # Set up the rootwrap sudoers for nova + install -d ${D}${sysconfdir}/sudoers.d + touch ${D}${sysconfdir}/sudoers.d/nova-rootwrap + chmod 0440 ${D}${sysconfdir}/sudoers.d/nova-rootwrap + chown root:root ${D}${sysconfdir}/sudoers.d/nova-rootwrap + echo "root ALL=(root) NOPASSWD: ${bindir}/nova-rootwrap" > \ + ${D}${sysconfdir}/sudoers.d/nova-rootwrap + + #Configuration options + sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ + ${TEMPLATE_CONF_DIR}/api-paste.ini > ${WORKDIR}/api-paste.ini + sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/api-paste.ini + sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ + -i ${WORKDIR}/api-paste.ini + + sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/nova.conf + sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/nova.conf + + sed -e "s:%OS_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${WORKDIR}/openrc + sed -e "s:%SERVICE_TOKEN%:${SERVICE_TOKEN}:g" -i ${WORKDIR}/openrc + + #Copy the configuration file + install -m 664 ${WORKDIR}/nova.conf ${NOVA_CONF_DIR}/nova.conf + install -m 664 ${WORKDIR}/api-paste.ini ${NOVA_CONF_DIR} + install -m 664 ${WORKDIR}/openrc ${NOVA_CONF_DIR} + + install -d ${NOVA_CONF_DIR}/instances + + if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/nova-compute ${D}${sysconfdir}/init.d/nova-compute + install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all + fi + +} + +USERADD_PACKAGES = "${PN}" +GROUPADD_PARAM_${PN} = "--system nova" +USERADD_PARAM_${PN} = "--system --home /var/lib/nova -g nova \ + --no-create-home --shell /bin/false nova" + +PACKAGES += "${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" + +pkg_postinst_${SRCNAME}-common () { + if [ "x$D" != "x" ]; then + exit 1 + fi + + echo "source /etc/nova/openrc" > /home/root/.bashrc +} + +pkg_postinst_${SRCNAME}-controller () { + if [ "x$D" != "x" ]; then + exit 1 + fi + + # This is to make sure postgres is configured and running + if ! pidof postmaster > /dev/null; then + sudo -u postgres initdb -D /etc/postgresql/ + /etc/init.d/postgresql start + sleep 0.2 + sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" + fi + + sudo -u postgres createdb nova + nova-manage db sync +} + + +FILES_${PN} = "${libdir}/*" + +FILES_${SRCNAME}-common = " ${bindir}/nova-manage \ + ${bindir}/nova-rootwrap \ + ${sysconfdir}/${SRCNAME}/* \ + ${sysconfdir}/sudoers.d" + +FILES_${SRCNAME}-compute = "${bindir}/nova-compute \ + ${sysconfdir}/init.d/nova-compute" + +FILES_${SRCNAME}-controller = "${bindir}/* \ + ${sysconfdir}/init.d/nova-all" + +RDEPENDS_${PN} = " python-modules \ + python-misc \ + python-argparse \ + python-amqplib \ + python-anyjson \ + python-babel \ + python-boto \ + python-cinderclient \ + python-cheetah \ + python-eventlet \ + python-feedparser \ + python-glanceclient \ + python-greenlet \ + python-httplib2 \ + python-iso8601 \ + python-kombu \ + python-lxml \ + python-netaddr \ + python-oslo.config \ + python-paste \ + python-pastedeploy \ + python-paramiko \ + python-pyasn1 \ + python-setuptools-git \ + python-simplejson \ + python-setuptools \ + python-sqlalchemy \ + python-sqlalchemy-migrate \ + python-stevedore \ + python-suds \ + python-quantumclient \ + python-routes \ + python-webob \ + python-websockify \ + " + +RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \ + iptables curl dnsmasq sudo procps" + +RDEPENDS_${SRCNAME}-compute = "${PN} nova-common \ + qemu libvirt libvirt-libvirtd libvirt-python libvirt-virsh" + +RDEPENDS_${SRCNAME}-controller = "${PN} nova-common \ + postgresql postgresql-client python-psycopg2" + +INITSCRIPT_PACKAGES = "${SRCNAME}-compute ${SRCNAME}-controller" +INITSCRIPT_NAME_${SRCNAME}-compute = "nova-compute" +INITSCRIPT_NAME_${SRCNAME}-controller = "nova-all" diff --git a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb b/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb deleted file mode 100644 index 5fd785c..0000000 --- a/meta-openstack/recipes-devtools/python/python-nova_2013.1.bb +++ /dev/null @@ -1,174 +0,0 @@ -DESCRIPTION = "Nova is a cloud computing fabric controller" -HOMEPAGE = "https://launchpad.net/nova" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -DEPENDS = "sudo" - -PR = "r0" -SRCNAME = "nova" - -SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ - file://nova.conf \ - file://nova-compute \ - file://nova-all \ - file://openrc \ - " - -SRC_URI[md5sum] = "38022353c398ce38c4e220d1d18b5916" -SRC_URI[sha256sum] = "db7f5259d848358bf14105d5833869ec145f643312e6bc0adef0050120fe3e07" - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools useradd update-rc.d identity - -do_install_append() { - TEMPLATE_CONF_DIR=${S}${sysconfdir}/${SRCNAME} - NOVA_CONF_DIR=${D}/${sysconfdir}/nova - - install -d ${NOVA_CONF_DIR} - install -m 600 ${S}/etc/nova/policy.json ${NOVA_CONF_DIR}/ - - # Deploy filters to /etc/nova/rootwrap.d - install -m 755 -d ${NOVA_CONF_DIR}/rootwrap.d - install -m 600 ${S}/etc/nova/rootwrap.d/*.filters ${NOVA_CONF_DIR}/rootwrap.d - chown -R root:root ${NOVA_CONF_DIR}/rootwrap.d - chmod 644 ${NOVA_CONF_DIR}/rootwrap.d - - # Set up rootwrap.conf, pointing to /etc/nova/rootwrap.d - install -m 644 ${S}/etc/nova/rootwrap.conf ${NOVA_CONF_DIR}/ - sed -e "s:^filters_path=.*$:filters_path=${NOVA_CONF_DIR}/rootwrap.d:" \ - -i ${NOVA_CONF_DIR}/rootwrap.conf - chown root:root $NOVA_CONF_DIR/rootwrap.conf - - # Set up the rootwrap sudoers for nova - install -d ${D}${sysconfdir}/sudoers.d - touch ${D}${sysconfdir}/sudoers.d/nova-rootwrap - chmod 0440 ${D}${sysconfdir}/sudoers.d/nova-rootwrap - chown root:root ${D}${sysconfdir}/sudoers.d/nova-rootwrap - echo "root ALL=(root) NOPASSWD: ${bindir}/nova-rootwrap" > \ - ${D}${sysconfdir}/sudoers.d/nova-rootwrap - - #Configuration options - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ - ${TEMPLATE_CONF_DIR}/api-paste.ini > ${WORKDIR}/api-paste.ini - sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/api-paste.ini - sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ - -i ${WORKDIR}/api-paste.ini - - sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/nova.conf - sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/nova.conf - - sed -e "s:%OS_PASSWORD%:${ADMIN_PASSWORD}:g" -i ${WORKDIR}/openrc - sed -e "s:%SERVICE_TOKEN%:${SERVICE_TOKEN}:g" -i ${WORKDIR}/openrc - - #Copy the configuration file - install -m 664 ${WORKDIR}/nova.conf ${NOVA_CONF_DIR}/nova.conf - install -m 664 ${WORKDIR}/api-paste.ini ${NOVA_CONF_DIR} - install -m 664 ${WORKDIR}/openrc ${NOVA_CONF_DIR} - - install -d ${NOVA_CONF_DIR}/instances - - if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/nova-compute ${D}${sysconfdir}/init.d/nova-compute - install -m 0755 ${WORKDIR}/nova-all ${D}${sysconfdir}/init.d/nova-all - fi - -} - -USERADD_PACKAGES = "${PN}" -GROUPADD_PARAM_${PN} = "--system nova" -USERADD_PARAM_${PN} = "--system --home /var/lib/nova -g nova \ - --no-create-home --shell /bin/false nova" - -PACKAGES += "${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" - -pkg_postinst_${SRCNAME}-common () { - if [ "x$D" != "x" ]; then - exit 1 - fi - - echo "source /etc/nova/openrc" > /home/root/.bashrc -} - -pkg_postinst_${SRCNAME}-controller () { - if [ "x$D" != "x" ]; then - exit 1 - fi - - # This is to make sure postgres is configured and running - if ! pidof postmaster > /dev/null; then - sudo -u postgres initdb -D /etc/postgresql/ - /etc/init.d/postgresql start - sleep 0.2 - sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" - fi - - sudo -u postgres createdb nova - nova-manage db sync -} - - -FILES_${PN} = "${libdir}/*" - -FILES_${SRCNAME}-common = " ${bindir}/nova-manage \ - ${bindir}/nova-rootwrap \ - ${sysconfdir}/${SRCNAME}/* \ - ${sysconfdir}/sudoers.d" - -FILES_${SRCNAME}-compute = "${bindir}/nova-compute \ - ${sysconfdir}/init.d/nova-compute" - -FILES_${SRCNAME}-controller = "${bindir}/* \ - ${sysconfdir}/init.d/nova-all" - -RDEPENDS_${PN} = " python-modules \ - python-misc \ - python-argparse \ - python-amqplib \ - python-anyjson \ - python-babel \ - python-boto \ - python-cinderclient \ - python-cheetah \ - python-eventlet \ - python-feedparser \ - python-glanceclient \ - python-greenlet \ - python-httplib2 \ - python-iso8601 \ - python-kombu \ - python-lxml \ - python-netaddr \ - python-oslo.config \ - python-paste \ - python-pastedeploy \ - python-paramiko \ - python-pyasn1 \ - python-setuptools-git \ - python-simplejson \ - python-setuptools \ - python-sqlalchemy \ - python-sqlalchemy-migrate \ - python-stevedore \ - python-suds \ - python-quantumclient \ - python-routes \ - python-webob \ - python-websockify \ - " - -RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \ - iptables curl dnsmasq sudo procps" - -RDEPENDS_${SRCNAME}-compute = "${PN} nova-common \ - qemu libvirt libvirt-libvirtd libvirt-python libvirt-virsh" - -RDEPENDS_${SRCNAME}-controller = "${PN} nova-common \ - postgresql postgresql-client python-psycopg2" - -INITSCRIPT_PACKAGES = "${SRCNAME}-compute ${SRCNAME}-controller" -INITSCRIPT_NAME_${SRCNAME}-compute = "nova-compute" -INITSCRIPT_NAME_${SRCNAME}-controller = "nova-all" 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 deleted file mode 100644 index 3c213a0..0000000 --- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb +++ /dev/null @@ -1,183 +0,0 @@ -DESCRIPTION = "Quantum (virtual network service)" -HOMEPAGE = "https://launchpad.net/quantum" -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -PR = "r0" -SRCNAME = "quantum" - -SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ - file://ovs_quantum_plugin.ini \ - file://linuxbridge_conf.ini \ - file://quantum-server.init \ - file://quantum-agent.init \ - " - -SRC_URI[md5sum] = "890ec5be7cede9cef6c8033412b74fe9" -SRC_URI[sha256sum] = "08752d58fc010332c527974ddff0475378f6104e77de40b0a690580f672c7fd2" - - -S = "${WORKDIR}/${SRCNAME}-${PV}" - -inherit setuptools update-rc.d identity - -do_install_append() { - TEMPLATE_CONF_DIR=${S}${sysconfdir}/ - QUANTUM_CONF_DIR=${D}${sysconfdir}/quantum - - sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ - ${TEMPLATE_CONF_DIR}/quantum.conf > ${WORKDIR}/quantum.conf - sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/quantum.conf - sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ - -i ${WORKDIR}/quantum.conf - sed -e "s:^# core_plugin.*:core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2:g" \ - -i ${WORKDIR}/quantum.conf - - for file in ovs_quantum_plugin.ini linuxbridge_conf.ini - do - sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/${file} - sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/${file} - done - - install -d ${QUANTUM_CONF_DIR} - install -d ${QUANTUM_CONF_DIR}/plugins/openvswitch - install -d ${QUANTUM_CONF_DIR}/plugins/linuxbridge - - install -m 600 ${WORKDIR}/quantum.conf ${QUANTUM_CONF_DIR}/ - install -m 600 ${WORKDIR}/ovs_quantum_plugin.ini ${QUANTUM_CONF_DIR}/plugins/openvswitch/ - install -m 600 ${WORKDIR}/linuxbridge_conf.ini ${QUANTUM_CONF_DIR}/plugins/linuxbridge/ - install -m 600 ${S}/etc/api-paste.ini ${QUANTUM_CONF_DIR}/ - install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/ - - PLUGIN=openvswitch - if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/init.d - sed "s:@plugin@:/etc/quantum/plugins/$PLUGIN/ovs_quantum_plugin.ini:" \ - < ${WORKDIR}/quantum-server.init >${WORKDIR}/quantum-server.init.sh - install -m 0755 ${WORKDIR}/quantum-server.init.sh ${D}${sysconfdir}/init.d/quantum-server - sed "s:@suffix@:$PLUGIN:" < ${WORKDIR}/quantum-agent.init >${WORKDIR}/quantum-$PLUGIN.init.sh - install -m 0755 ${WORKDIR}/quantum-$PLUGIN.init.sh ${D}${sysconfdir}/init.d/quantum-$PLUGIN-agent - fi -} - -pkg_postinst_${SRCNAME} () { - if [ "x$D" != "x" ]; then - exit 1 - fi - - # This is to make sure postgres is configured and running - if ! pidof postmaster > /dev/null; then - sudo -u postgres initdb -D /etc/postgresql/ - /etc/init.d/postgresql start - sleep 0.2 - sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" - fi - - sudo -u postgres createdb ovs_quantum -} - -pkg_postinst_${SRCNAME}-plugin-openvswitch () { - if [ "x$D" != "x" ]; then - exit 1 - fi - - /etc/init.d/openvswitch-switch start - ovs-vsctl --no-wait -- --may-exist add-br br-int -} - -PACKAGES += " \ - ${SRCNAME} \ - ${SRCNAME}-doc \ - ${SRCNAME}-server \ - ${SRCNAME}-plugin-openvswitch \ - ${SRCNAME}-plugin-linuxbridge \ - ${SRCNAME}-dhcp-agent \ - ${SRCNAME}-l3-agent \ - ${SRCNAME}-metadata-agent \ - ${SRCNAME}-extra-agents \ - " - -FILES_${PN} = "${libdir}/*" - -FILES_${SRCNAME} = " \ - ${bindir}/quantum-db-manage \ - ${bindir}/quantum-rootwrap \ - ${bindir}/quantum-debug \ - ${bindir}/quantum-netns-cleanup \ - ${bindir}/quantum-ovs-cleanup \ - ${sysconfdir}/${SRCNAME}/* " - -FILES_${SRCNAME}-server = "${bindir}/quantum-server \ - ${sysconfdir}/init.d/quantum-server \ - " - -FILES_${SRCNAME}-plugin-openvswitch = " \ - ${bindir}/quantum-openvswitch-agent \ - ${sysconfdir}/${SRCNAME}/plugins/openvswitch/ovs_quantum_plugin.ini \ - ${sysconfdir}/init.d/quantum-openvswitch-agent \ - " - -FILES_${SRCNAME}-plugin-linuxbridge = " \ - ${bindir}/quantum-linuxbridge-agent \ - ${sysconfdir}/${SRCNAME}/plugins/linuxbridge/linuxbridge_conf.ini \ - ${sysconfdir}/init.d/quantum-linuxbridge-agent \ - " - -FILES_${SRCNAME}-dhcp-agent = "${bindir}/quantum-dhcp-agent \ - ${sysconfdir}/${SRCNAME}/dhcp_agent.ini \ - ${sysconfdir}/init.d/dhcp_agent \ - " - -FILES_${SRCNAME}-l3-agent = "${bindir}/quantum-l3-agent \ - ${sysconfdir}/${SRCNAME}/l3_agent.ini \ - ${sysconfdir}/init.d/l3_agent \ - " - -FILES_${SRCNAME}-metadata-agent = "${bindir}/quantum-metadata-agent \ - ${sysconfdir}/${SRCNAME}/metadata_agent.ini \ - ${sysconfdir}/init.d/metadata_agent \ - " - -FILES_${SRCNAME}-extra-agents = "${bindir}/*" - -FILES_${SRCNAME}-doc = "${datadir}/*" - -RDEPENDS_${PN} += "python-paste \ - python-pastedeploy \ - python-routes \ - python-amqplib \ - python-anyjson \ - python-alembic \ - python-eventlet \ - python-greenlet \ - python-httplib2 \ - python-iso8601 \ - python-kombu \ - python-netaddr \ - python-quantumclient \ - python-sqlalchemy \ - python-webob \ - python-keystoneclient \ - python-oslo.config \ - python-pyudev \ - python-novaclient \ - python-mako \ - python-markupsafe \ - " - -RDEPENDS_${SRCNAME} = "${PN} \ - postgresql postgresql-client python-psycopg2" - -RDEPENDS_${SRCNAME}-server = "${SRCNAME}" -RDEPENDS_${SRCNAME}-plugin-openvswitch = "${SRCNAME} openvswitch-switch " -RDEPENDS_${SRCNAME}-plugin-linuxbridge = "${SRCNAME} bridge-utils" -RDEPENDS_${SRCNAME}-dhcp-agent = "${SRCNAME} dnsmasq" -RDEPENDS_${SRCNAME}-l3-agent = "${SRCNAME} ${SRCNAME}-metadata-agent iputils" - -RRECOMMENDS_${SRCNAME}-server = "${SRCNAME}-plugin-openvswitch" - -INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge" -INITSCRIPT_NAME_${SRCNAME}-server = "quantum-server" -INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "quantum-openvswitch-agent" -INITSCRIPT_NAME_${SRCNAME}-plugin-linuxbridge = "quantum-linuxbridge-agent" 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 new file mode 100644 index 0000000..d593a66 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.3.bb @@ -0,0 +1,183 @@ +DESCRIPTION = "Quantum (virtual network service)" +HOMEPAGE = "https://launchpad.net/quantum" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +PR = "r0" +SRCNAME = "quantum" + +SRC_URI = "https://launchpad.net/${SRCNAME}/grizzly/${PV}/+download/${SRCNAME}-${PV}.tar.gz \ + file://ovs_quantum_plugin.ini \ + file://linuxbridge_conf.ini \ + file://quantum-server.init \ + file://quantum-agent.init \ + " + +SRC_URI[md5sum] = "ca410283029db2cade16c8af003f9b7f" +SRC_URI[sha256sum] = "79e60ec1aef800da3a4e1841909cdd8b2cf645979d08f27bc481957c7944e93d" + + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools update-rc.d identity + +do_install_append() { + TEMPLATE_CONF_DIR=${S}${sysconfdir}/ + QUANTUM_CONF_DIR=${D}${sysconfdir}/quantum + + sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ + ${TEMPLATE_CONF_DIR}/quantum.conf > ${WORKDIR}/quantum.conf + sed -e "s:%SERVICE_USER%:${SRCNAME}:g" -i ${WORKDIR}/quantum.conf + sed -e "s:%SERVICE_PASSWORD%:${SERVICE_PASSWORD}:g" \ + -i ${WORKDIR}/quantum.conf + sed -e "s:^# core_plugin.*:core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2:g" \ + -i ${WORKDIR}/quantum.conf + + for file in ovs_quantum_plugin.ini linuxbridge_conf.ini + do + sed -e "s:%DB_USER%:${DB_USER}:g" -i ${WORKDIR}/${file} + sed -e "s:%DB_PASSWORD%:${DB_PASSWORD}:g" -i ${WORKDIR}/${file} + done + + install -d ${QUANTUM_CONF_DIR} + install -d ${QUANTUM_CONF_DIR}/plugins/openvswitch + install -d ${QUANTUM_CONF_DIR}/plugins/linuxbridge + + install -m 600 ${WORKDIR}/quantum.conf ${QUANTUM_CONF_DIR}/ + install -m 600 ${WORKDIR}/ovs_quantum_plugin.ini ${QUANTUM_CONF_DIR}/plugins/openvswitch/ + install -m 600 ${WORKDIR}/linuxbridge_conf.ini ${QUANTUM_CONF_DIR}/plugins/linuxbridge/ + install -m 600 ${S}/etc/api-paste.ini ${QUANTUM_CONF_DIR}/ + install -m 600 ${S}/etc/policy.json ${QUANTUM_CONF_DIR}/ + + PLUGIN=openvswitch + if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/init.d + sed "s:@plugin@:/etc/quantum/plugins/$PLUGIN/ovs_quantum_plugin.ini:" \ + < ${WORKDIR}/quantum-server.init >${WORKDIR}/quantum-server.init.sh + install -m 0755 ${WORKDIR}/quantum-server.init.sh ${D}${sysconfdir}/init.d/quantum-server + sed "s:@suffix@:$PLUGIN:" < ${WORKDIR}/quantum-agent.init >${WORKDIR}/quantum-$PLUGIN.init.sh + install -m 0755 ${WORKDIR}/quantum-$PLUGIN.init.sh ${D}${sysconfdir}/init.d/quantum-$PLUGIN-agent + fi +} + +pkg_postinst_${SRCNAME} () { + if [ "x$D" != "x" ]; then + exit 1 + fi + + # This is to make sure postgres is configured and running + if ! pidof postmaster > /dev/null; then + sudo -u postgres initdb -D /etc/postgresql/ + /etc/init.d/postgresql start + sleep 0.2 + sudo -u postgres psql -c "CREATE ROLE ${DB_USER} WITH SUPERUSER LOGIN PASSWORD '${DB_PASSWORD}'" + fi + + sudo -u postgres createdb ovs_quantum +} + +pkg_postinst_${SRCNAME}-plugin-openvswitch () { + if [ "x$D" != "x" ]; then + exit 1 + fi + + /etc/init.d/openvswitch-switch start + ovs-vsctl --no-wait -- --may-exist add-br br-int +} + +PACKAGES += " \ + ${SRCNAME} \ + ${SRCNAME}-doc \ + ${SRCNAME}-server \ + ${SRCNAME}-plugin-openvswitch \ + ${SRCNAME}-plugin-linuxbridge \ + ${SRCNAME}-dhcp-agent \ + ${SRCNAME}-l3-agent \ + ${SRCNAME}-metadata-agent \ + ${SRCNAME}-extra-agents \ + " + +FILES_${PN} = "${libdir}/*" + +FILES_${SRCNAME} = " \ + ${bindir}/quantum-db-manage \ + ${bindir}/quantum-rootwrap \ + ${bindir}/quantum-debug \ + ${bindir}/quantum-netns-cleanup \ + ${bindir}/quantum-ovs-cleanup \ + ${sysconfdir}/${SRCNAME}/* " + +FILES_${SRCNAME}-server = "${bindir}/quantum-server \ + ${sysconfdir}/init.d/quantum-server \ + " + +FILES_${SRCNAME}-plugin-openvswitch = " \ + ${bindir}/quantum-openvswitch-agent \ + ${sysconfdir}/${SRCNAME}/plugins/openvswitch/ovs_quantum_plugin.ini \ + ${sysconfdir}/init.d/quantum-openvswitch-agent \ + " + +FILES_${SRCNAME}-plugin-linuxbridge = " \ + ${bindir}/quantum-linuxbridge-agent \ + ${sysconfdir}/${SRCNAME}/plugins/linuxbridge/linuxbridge_conf.ini \ + ${sysconfdir}/init.d/quantum-linuxbridge-agent \ + " + +FILES_${SRCNAME}-dhcp-agent = "${bindir}/quantum-dhcp-agent \ + ${sysconfdir}/${SRCNAME}/dhcp_agent.ini \ + ${sysconfdir}/init.d/dhcp_agent \ + " + +FILES_${SRCNAME}-l3-agent = "${bindir}/quantum-l3-agent \ + ${sysconfdir}/${SRCNAME}/l3_agent.ini \ + ${sysconfdir}/init.d/l3_agent \ + " + +FILES_${SRCNAME}-metadata-agent = "${bindir}/quantum-metadata-agent \ + ${sysconfdir}/${SRCNAME}/metadata_agent.ini \ + ${sysconfdir}/init.d/metadata_agent \ + " + +FILES_${SRCNAME}-extra-agents = "${bindir}/*" + +FILES_${SRCNAME}-doc = "${datadir}/*" + +RDEPENDS_${PN} += "python-paste \ + python-pastedeploy \ + python-routes \ + python-amqplib \ + python-anyjson \ + python-alembic \ + python-eventlet \ + python-greenlet \ + python-httplib2 \ + python-iso8601 \ + python-kombu \ + python-netaddr \ + python-quantumclient \ + python-sqlalchemy \ + python-webob \ + python-keystoneclient \ + python-oslo.config \ + python-pyudev \ + python-novaclient \ + python-mako \ + python-markupsafe \ + " + +RDEPENDS_${SRCNAME} = "${PN} \ + postgresql postgresql-client python-psycopg2" + +RDEPENDS_${SRCNAME}-server = "${SRCNAME}" +RDEPENDS_${SRCNAME}-plugin-openvswitch = "${SRCNAME} openvswitch-switch " +RDEPENDS_${SRCNAME}-plugin-linuxbridge = "${SRCNAME} bridge-utils" +RDEPENDS_${SRCNAME}-dhcp-agent = "${SRCNAME} dnsmasq" +RDEPENDS_${SRCNAME}-l3-agent = "${SRCNAME} ${SRCNAME}-metadata-agent iputils" + +RRECOMMENDS_${SRCNAME}-server = "${SRCNAME}-plugin-openvswitch" + +INITSCRIPT_PACKAGES = "${SRCNAME}-server ${SRCNAME}-plugin-openvswitch ${SRCNAME}-plugin-linuxbridge" +INITSCRIPT_NAME_${SRCNAME}-server = "quantum-server" +INITSCRIPT_NAME_${SRCNAME}-plugin-openvswitch = "quantum-openvswitch-agent" +INITSCRIPT_NAME_${SRCNAME}-plugin-linuxbridge = "quantum-linuxbridge-agent" -- cgit v1.2.3-54-g00ecf