summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-nova-compute_2013.1.3.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-08-25 23:59:46 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-28 18:42:00 -0400
commit6e8b7c9fb262768cb89712948b9fadf461e472ba (patch)
treed29fc8dd1b43815e3892ab28b2c1a05333359ef3 /meta-openstack/recipes-devtools/python/python-nova-compute_2013.1.3.bb
parentec5aab41b280d719c14e1c5d88d09e7b38168bb3 (diff)
downloadmeta-cloud-services-6e8b7c9fb262768cb89712948b9fadf461e472ba.tar.gz
nova: split into explicit compute and controller recipes
To allow unique configuration of nova for compute and controller nodes, the nova class is split into two, but packaged largely the same way. The compute and controller classes are introduced to hold configuration values and operations that are used by the common packaging routines to customize and deploy. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-nova-compute_2013.1.3.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-nova-compute_2013.1.3.bb35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova-compute_2013.1.3.bb b/meta-openstack/recipes-devtools/python/python-nova-compute_2013.1.3.bb
new file mode 100644
index 0000000..204313d
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-nova-compute_2013.1.3.bb
@@ -0,0 +1,35 @@
1
2include python-nova.inc
3
4PR = "r0"
5
6FILESEXTRAPATHS := "${THISDIR}/${PYTHON_PN}"
7
8SRC_URI += "file://nova-compute \
9 file://nova.conf \
10 file://openrc \
11 "
12
13inherit compute update-rc.d
14
15PACKAGES = "${SRCNAME}-compute ${SRCNAME}-compute-misc"
16
17do_install_append() {
18 if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
19 install -d ${D}${sysconfdir}/init.d
20 install -m 0755 ${WORKDIR}/nova-compute ${D}${sysconfdir}/init.d/nova-compute
21 fi
22}
23
24FILES_${SRCNAME}-compute = " ${files_${SRCNAME}-compute}"
25
26# the controller is built, so we package it out of the way
27FILES_${SRCNAME}-compute-misc = "${files_${SRCNAME}-controller} ${files_${SRCNAME}-common} ${files_${PYTHON_PN}}"
28
29RDEPENDS_${SRCNAME}-compute = "${PYTHON_PN} ${SRCNAME}-common \
30 qemu libvirt libvirt-libvirtd libvirt-python libvirt-virsh"
31
32RCONFLICTS_${SRCNAME}-compute = "${SRCNAME}-controller"
33
34INITSCRIPT_PACKAGES = "${SRCNAME}-compute"
35INITSCRIPT_NAME_${SRCNAME}-compute = "nova-compute"